org.planx.xmlstore.references
Class LocalLocator

java.lang.Object
  extended by org.planx.util.ObjectReference<Locator>
      extended by org.planx.xmlstore.references.LocalLocator
All Implemented Interfaces:
Locatable, Reference

public class LocalLocator
extends ObjectReference<Locator>
implements Reference, Locatable

An updatable Reference having a Locator to a FileSystem location. The actual locator can be updated behind-the-scenes by calling the move method. The currently valid Locator can be obtained by calling the location() method.

Author:
Thomas Ambus

Constructor Summary
LocalLocator(Locator loc)
           
 
Method Summary
 boolean equals(Object o)
          Two ObjectReferences are equal if and only if the objects that they point to are equal.
static SizeStreamer<LocalLocator> getStreamer()
           
 int hashCode()
          Returns the hash code of the object pointed to.
 Locator location()
           
 
Methods inherited from class org.planx.util.ObjectReference
get, move, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalLocator

public LocalLocator(Locator loc)
Method Detail

location

public Locator location()
Specified by:
location in interface Locatable

equals

public boolean equals(Object o)
Description copied from class: ObjectReference
Two ObjectReferences are equal if and only if the objects that they point to are equal.

Overrides:
equals in class ObjectReference<Locator>

hashCode

public int hashCode()
Description copied from class: ObjectReference
Returns the hash code of the object pointed to.

Overrides:
hashCode in class ObjectReference<Locator>

getStreamer

public static SizeStreamer<LocalLocator> getStreamer()


Copyright © 2004-2005 Plan-X. All Rights Reserved.