All Packages Class Hierarchy This Package Previous Next Index
Class jdsl.core.ref.AlwaysInvalidLocator
java.lang.Object
|
+----jdsl.core.ref.AlwaysInvalidLocator
- public class AlwaysInvalidLocator
- extends Object
- implements Locator
A Locator that explodes, no matter what you do to it. It is used
as the return from methods that return a locator but that
sometimes have an error return.
- Version:
- Tue Jun 23 17:18:54 EDT 1998
- Author:
- Mark Handy
-
label_
-
-
AlwaysInvalidLocator(String)
- Class Constructor.
-
container()
- Throws an InvalidLocatorException when an attempt is made
to access the container of this locator.
-
element()
- Throws an InvalidLocatorException when an attempt is made
to access the element of this locator.
-
isContained()
- Throws an InvalidLocatorException when an attempt is made
to find out if this locator is contained or not.
-
key()
- Throws an InvalidLocatorException when an attempt is made
to access the key of this locator.
-
toString()
- Returns a string representation of this AlwaysInvalidLocator.
label_
protected String label_
AlwaysInvalidLocator
public AlwaysInvalidLocator(String label)
- Class Constructor.
- Parameters:
- label - Why this locator was created.
key
public Object key()
- Throws an InvalidLocatorException when an attempt is made
to access the key of this locator.
- Returns:
- nothing, since an exception is always thrown.
element
public Object element()
- Throws an InvalidLocatorException when an attempt is made
to access the element of this locator.
- Returns:
- nothing, since an exception is always thrown.
container
public Container container()
- Throws an InvalidLocatorException when an attempt is made
to access the container of this locator.
- Returns:
- nothing, since an exception is always thrown.
isContained
public boolean isContained()
- Throws an InvalidLocatorException when an attempt is made
to find out if this locator is contained or not.
- Returns:
- nothing, since an exception is always thrown.
toString
public String toString()
- Returns a string representation of this AlwaysInvalidLocator.
- Returns:
- a string representating this Locator.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index