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.


Variable Index

 o label_

Constructor Index

 o AlwaysInvalidLocator(String)

Method Index

 o container()
Throws an InvalidLocatorException when an attempt is made to access the container of this locator.
 o element()
Throws an InvalidLocatorException when an attempt is made to access the element of this locator.
 o isContained()
Throws an InvalidLocatorException when an attempt is made to find out if this locator is contained or not.
 o key()
Throws an InvalidLocatorException when an attempt is made to access the key of this locator.
 o toString()
Returns a string representation of this AlwaysInvalidLocator.

Variables

 o label_
 protected String label_

Constructors

 o AlwaysInvalidLocator
 public AlwaysInvalidLocator(String label)
Parameters:
label - Why this locator was created.

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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