org.davic.net
Class Locator

java.lang.Object
  extended byorg.davic.net.Locator
All Implemented Interfaces:
javax.tv.locator.Locator
Direct Known Subclasses:
DvbLocator

public abstract class Locator
extends java.lang.Object
implements javax.tv.locator.Locator

Locator that encapsulates an URL into an object


Constructor Summary
Locator(java.lang.String url)
          Constructor for the locator
 
Method Summary
 boolean hasMultipleTransformations()
          Indicates whether this locator maps to multiple transport dependent locators
 java.lang.String toExternalForm()
          Returns a URL string corresponding to the locator If the instance of Locator has been created using Locator(java.lang.String url) and the URL is a non-null invalid URL the behaviour is implementation dependent.
 java.lang.String toString()
          Returns the URL string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.tv.locator.Locator
equals, hashCode
 

Constructor Detail

Locator

public Locator(java.lang.String url)
Constructor for the locator

Parameters:
url - a URL string
Method Detail

toString

public java.lang.String toString()
Returns the URL string representation

Specified by:
toString in interface javax.tv.locator.Locator
Returns:
a URL string

hasMultipleTransformations

public boolean hasMultipleTransformations()
Indicates whether this locator maps to multiple transport dependent locators

Specified by:
hasMultipleTransformations in interface javax.tv.locator.Locator
Returns:
true, if and only if this locator maps to more than one transport dependent locator

toExternalForm

public java.lang.String toExternalForm()
Returns a URL string corresponding to the locator If the instance of Locator has been created using Locator(java.lang.String url) and the URL is a non-null invalid URL the behaviour is implementation dependent.

Specified by:
toExternalForm in interface javax.tv.locator.Locator
Returns:
a URL string