public class StringID extends BaseID
| Modifier and Type | Class and Description |
|---|---|
static class |
StringID.StringIDNamespace |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
value |
| Modifier | Constructor and Description |
|---|---|
|
StringID() |
protected |
StringID(Namespace n,
java.lang.String s)
Protected constructor for factory-based construction
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Get the unique name of this identity.
|
Namespace |
getNamespace()
Get the Namespace instance associated with this identity
|
int |
hashCode() |
protected int |
namespaceCompareTo(BaseID obj)
|
protected boolean |
namespaceEquals(BaseID obj)
Called by
Namespace.testIDEquals(BaseID, BaseID). |
protected java.lang.String |
namespaceGetName()
Called by
Namespace.getNameForID(BaseID). |
protected int |
namespaceHashCode()
Called by
Namespace.getHashCodeForID(BaseID). |
protected void |
setEmptyNamespace() |
java.lang.String |
toExternalForm()
Get this ID instance in String form.
|
java.lang.String |
toString() |
getAdapter, namespaceToExternalFormpublic StringID()
protected StringID(Namespace n, java.lang.String s)
n - the Namespace this identity will belong tos - the String defining this StringIDpublic int compareTo(java.lang.Object o)
public boolean equals(java.lang.Object o)
public java.lang.String getName()
IDpublic int hashCode()
public Namespace getNamespace()
IDgetNamespace in interface IDgetNamespace in class BaseIDpublic java.lang.String toExternalForm()
IDtoExternalForm in interface IDtoExternalForm in class BaseIDpublic java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectprotected int namespaceCompareTo(BaseID obj)
BaseIDnamespaceCompareTo in class BaseIDobj - the other ID to compare to. Will not be null.Comparable contract.protected boolean namespaceEquals(BaseID obj)
BaseIDNamespace.testIDEquals(BaseID, BaseID).namespaceEquals in class BaseIDobj - the other ID to test against. May be null.true if this ID is equal to the given ID.
false otherwise.protected java.lang.String namespaceGetName()
BaseIDNamespace.getNameForID(BaseID).namespaceGetName in class BaseIDnull. Value
returned should be unique within this Namespace.protected int namespaceHashCode()
BaseIDNamespace.getHashCodeForID(BaseID).namespaceHashCode in class BaseIDprotected void setEmptyNamespace()