Package net.ontopia.topicmaps.impl.rdbms
Class RDBMSLocator
- java.lang.Object
-
- net.ontopia.infoset.impl.basic.AbstractLocator
-
- net.ontopia.topicmaps.impl.rdbms.RDBMSLocator
-
- All Implemented Interfaces:
Externalizable,Serializable,LocatorIF
- Direct Known Subclasses:
DataTypeLocator,SourceLocator,SubjectIndicatorLocator,SubjectLocator
public class RDBMSLocator extends AbstractLocator implements Externalizable
INTERNAL: An abstract locator implementation used for representing locators within the rdbms implementation.No normalization or absolutization is done.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RDBMSLocator()RDBMSLocator(LocatorIF locator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String_getAddress()void_setAddress(String address)booleanequals(Object object)PUBLIC: Two LocatorIFs are considered equal if they have the same address and notation properties.StringgetAddress()PUBLIC: Returns the locator address in absolute and normalized form.StringgetExternalForm()PUBLIC: Returns the address of the locator in external form; that is, with special characters that need to be escaped escaped using the escape syntax of the locator notation.StringgetNotation()PUBLIC: Gets the locator notation.inthashCode()PUBLIC: Returns the hashcode of the address property.voidreadExternal(ObjectInput in)LocatorIFresolveAbsolute(String address)PUBLIC: Given a locator address string that is relative to this locator, return an absolute locator.voidwriteExternal(ObjectOutput out)-
Methods inherited from class net.ontopia.infoset.impl.basic.AbstractLocator
toString
-
-
-
-
Field Detail
-
address
protected String address
-
-
Constructor Detail
-
RDBMSLocator
public RDBMSLocator()
-
RDBMSLocator
public RDBMSLocator(LocatorIF locator)
-
-
Method Detail
-
getNotation
public String getNotation()
Description copied from interface:LocatorIFPUBLIC: Gets the locator notation. The default notation is URI. Ontopia will never use notation names which begin with 'x-'. Notation names are case-insensitive.Note that only the URI notation is supported in release OKS 4.0 and newer.
- Specified by:
getNotationin interfaceLocatorIF
-
getAddress
public String getAddress()
Description copied from interface:LocatorIFPUBLIC: Returns the locator address in absolute and normalized form. Whether addresses are case-sensitive or not depends on the locator notation.- Specified by:
getAddressin interfaceLocatorIF
-
resolveAbsolute
public LocatorIF resolveAbsolute(String address)
Description copied from interface:LocatorIFPUBLIC: Given a locator address string that is relative to this locator, return an absolute locator. If the input locator address is absolute the returned locator object will simply contain that absolute locator address.- Specified by:
resolveAbsolutein interfaceLocatorIF
-
getExternalForm
public String getExternalForm()
Description copied from interface:LocatorIFPUBLIC: Returns the address of the locator in external form; that is, with special characters that need to be escaped escaped using the escape syntax of the locator notation.- Specified by:
getExternalFormin interfaceLocatorIF
-
hashCode
public int hashCode()
Description copied from class:AbstractLocatorPUBLIC: 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:
hashCodein classAbstractLocator
-
equals
public boolean equals(Object object)
Description copied from class:AbstractLocatorPUBLIC: Two LocatorIFs are considered equal if they have the same address and notation properties.- Overrides:
equalsin classAbstractLocator
-
_getAddress
public String _getAddress()
-
_setAddress
public void _setAddress(String address)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-