net.ontopia.infoset.impl.basic
Class AbstractLocator

java.lang.Object
  extended by net.ontopia.infoset.impl.basic.AbstractLocator
All Implemented Interfaces:
java.io.Serializable, LocatorIF
Direct Known Subclasses:
GenericLocator, RDBMSLocator, URIFragmentLocator, URILocator

public abstract class AbstractLocator
extends java.lang.Object
implements LocatorIF, java.io.Serializable

INTERNAL: The abstract locator class. All locator implementations should extend this class.

See Also:
Serialized Form

Constructor Summary
AbstractLocator()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          PUBLIC: Two LocatorIFs are considered equal if they have the same address and notation properties.
 int hashCode()
          PUBLIC: Returns the hashcode of the address property.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.ontopia.infoset.core.LocatorIF
getAddress, getExternalForm, getNotation, resolveAbsolute
 

Constructor Detail

AbstractLocator

public AbstractLocator()
Method Detail

equals

public boolean equals(java.lang.Object object)
PUBLIC: Two LocatorIFs are considered equal if they have the same address and notation properties.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
PUBLIC: Returns the hashcode of the address property. All subclasses of AbstractLocator must use the same hashCode implementation in order to guarantee interoperability. E.g. when looking up LocatorIFs in Maps.

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.