Package net.ontopia.infoset.impl.basic
Class AbstractLocator
- java.lang.Object
-
- net.ontopia.infoset.impl.basic.AbstractLocator
-
- All Implemented Interfaces:
Serializable
,LocatorIF
- Direct Known Subclasses:
GenericLocator
,RDBMSLocator
,URIFragmentLocator
,URILocator
public abstract class AbstractLocator extends Object implements LocatorIF, Serializable
INTERNAL: The abstract locator class. All locator implementations should extend this class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(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.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
-
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
PUBLIC: Two LocatorIFs are considered equal if they have the same address and notation properties.
-
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.
-
-