public interface ID
extends java.io.Serializable, java.lang.Comparable, java.security.Principal, org.eclipse.core.runtime.IAdaptable
ECF IDs are immutable once constructed, and unique within the containing
Namespace
.
ID instances are created via the Namespace.createInstance(...) method. This method is called by the IDFactory.createID(...) methods for the given Namespace. So, for example, to create an ID instance with the name "slewis":
ID id = IDFactory.getDefault().createID(namespace, "slewis");
Namespace
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Get the unique name of this identity.
|
Namespace |
getNamespace()
Get the Namespace instance associated with this identity
|
int |
hashCode() |
java.lang.String |
toExternalForm()
Get this ID instance in String form.
|
boolean equals(java.lang.Object obj)
equals
in interface java.security.Principal
equals
in class java.lang.Object
int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
java.lang.String getName()
getName
in interface java.security.Principal
Namespace getNamespace()
java.lang.String toExternalForm()