Package net.ontopia.infoset.impl.basic
Class URIFragmentLocator
java.lang.Object
net.ontopia.infoset.impl.basic.AbstractLocator
net.ontopia.infoset.impl.basic.URIFragmentLocator
- All Implemented Interfaces:
Serializable,LocatorIF
INTERNAL.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedURIFragmentLocator(String address, String fragment, short schemeEnd, short authorityEnd, short lastSlash) -
Method Summary
Modifier and TypeMethodDescriptionbooleanPUBLIC: Two LocatorIFs are considered equal if they have the same address and notation properties.PUBLIC: Returns the locator address in absolute and normalized form.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.PUBLIC: Gets the locator notation.inthashCode()PUBLIC: Returns the hashcode of the address property.resolveAbsolute(String rel) PUBLIC: Given a locator address string that is relative to this locator, return an absolute locator.Methods inherited from class net.ontopia.infoset.impl.basic.AbstractLocator
toString
-
Field Details
-
address
-
fragment
-
schemeEnd
protected short schemeEnd -
authorityEnd
protected short authorityEnd -
lastSlash
protected short lastSlash
-
-
Constructor Details
-
URIFragmentLocator
-
-
Method Details
-
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.
-
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. -
resolveAbsolute
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. -
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. -
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
Description copied from class:AbstractLocatorPUBLIC: Two LocatorIFs are considered equal if they have the same address and notation properties.- Overrides:
equalsin classAbstractLocator
-