public class GenericLocator extends AbstractLocator implements Externalizable
Modifier and Type | Field and Description |
---|---|
protected String |
address |
protected String |
notation |
Constructor and Description |
---|
GenericLocator()
INTERNAL: No-argument constructor used by serialization.
|
GenericLocator(String notation,
String address) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
PUBLIC: Two LocatorIFs are considered equal if they have the same
address and notation properties.
|
String |
getAddress()
PUBLIC: Returns the locator address in absolute and normalized
form.
|
String |
getExternalForm()
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.
|
String |
getNotation()
PUBLIC: Gets the locator notation.
|
int |
hashCode()
PUBLIC: Returns the hashcode of the address property.
|
void |
readExternal(ObjectInput in) |
LocatorIF |
resolveAbsolute(String address)
PUBLIC: Given a locator address string that is relative to this
locator, return an absolute locator.
|
void |
writeExternal(ObjectOutput out) |
toString
public GenericLocator()
public GenericLocator(String notation, String address) throws IllegalArgumentException
IllegalArgumentException
public String getNotation()
LocatorIF
Note that only the URI notation is supported in release OKS 4.0 and newer.
getNotation
in interface LocatorIF
public String getAddress()
LocatorIF
getAddress
in interface LocatorIF
public LocatorIF resolveAbsolute(String address)
LocatorIF
resolveAbsolute
in interface LocatorIF
public String getExternalForm()
LocatorIF
getExternalForm
in interface LocatorIF
public int hashCode()
AbstractLocator
hashCode
in class AbstractLocator
public boolean equals(Object object)
AbstractLocator
equals
in class AbstractLocator
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException