|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.core.identity.BaseID
org.eclipse.ecf.core.identity.StringID
public class StringID
A string-based identity
| Nested Class Summary | |
|---|---|
static class |
StringID.StringIDNamespace
|
| Field Summary | |
|---|---|
protected java.lang.String |
value
|
| Fields inherited from class org.eclipse.ecf.core.identity.BaseID |
|---|
namespace |
| Constructor Summary | |
|---|---|
protected |
StringID(Namespace n,
java.lang.String s)
Protected constructor for factory-based construction |
| Method Summary | |
|---|---|
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)
Called by Namespace.getCompareToForObject(BaseID, BaseID). |
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()
|
| Methods inherited from class org.eclipse.ecf.core.identity.BaseID |
|---|
getAdapter, namespaceToExternalForm |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String value
| Constructor Detail |
|---|
protected StringID(Namespace n,
java.lang.String s)
n - the Namespace this identity will belong tos - the String defining this StringID| Method Detail |
|---|
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class BaseIDpublic boolean equals(java.lang.Object o)
equals in interface java.security.Principalequals in interface IDequals in class BaseIDpublic java.lang.String getName()
ID
getName in interface java.security.PrincipalgetName in interface IDgetName in class BaseIDpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in interface IDhashCode in class BaseIDpublic Namespace getNamespace()
ID
getNamespace in interface IDgetNamespace in class BaseIDpublic java.lang.String toExternalForm()
ID
toExternalForm 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)
BaseIDNamespace.getCompareToForObject(BaseID, BaseID).
namespaceCompareTo 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||