|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.core.identity.BaseID
public abstract class BaseID
Base class for ID implementation classes Extensions for the org.eclipse.ecf.namespace extension point that expose new Namespace subclasses and their own ID implementations are recommended (but not required) to use this class as a superclass.
Field Summary | |
---|---|
protected Namespace |
namespace
|
Constructor Summary | |
---|---|
protected |
BaseID()
|
protected |
BaseID(Namespace namespace)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
getAdapter(java.lang.Class clazz)
|
java.lang.String |
getName()
Get the unique name of this identity. |
Namespace |
getNamespace()
Get the Namespace instance associated with this identity |
int |
hashCode()
|
protected abstract int |
namespaceCompareTo(BaseID o)
Called by Namespace.getCompareToForObject(BaseID, BaseID) . |
protected abstract boolean |
namespaceEquals(BaseID o)
Called by Namespace.testIDEquals(BaseID, BaseID) . |
protected abstract java.lang.String |
namespaceGetName()
Called by Namespace.getNameForID(BaseID) . |
protected abstract int |
namespaceHashCode()
Called by Namespace.getHashCodeForID(BaseID) . |
protected java.lang.String |
namespaceToExternalForm()
Called by Namespace.toExternalForm(BaseID) . |
java.lang.String |
toExternalForm()
Get this ID instance in String form. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
toString |
Field Detail |
---|
protected Namespace namespace
Constructor Detail |
---|
protected BaseID()
protected BaseID(Namespace namespace)
Method Detail |
---|
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in interface java.security.Principal
equals
in interface ID
equals
in class java.lang.Object
public java.lang.String getName()
ID
getName
in interface java.security.Principal
getName
in interface ID
public Namespace getNamespace()
ID
getNamespace
in interface ID
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in interface ID
hashCode
in class java.lang.Object
public java.lang.String toExternalForm()
ID
toExternalForm
in interface ID
protected abstract int namespaceCompareTo(BaseID o)
Namespace.getCompareToForObject(BaseID, BaseID)
.
o
- the other ID to compare to. Will not be null
.
Comparable
contract.protected abstract boolean namespaceEquals(BaseID o)
Namespace.testIDEquals(BaseID, BaseID)
.
o
- the other ID to test against. May be null
.
true
if this ID is equal to the given ID.
false
otherwise.protected abstract java.lang.String namespaceGetName()
Namespace.getNameForID(BaseID)
.
null
. Value
returned should be unique within this Namespace.protected abstract int namespaceHashCode()
Namespace.getHashCodeForID(BaseID)
.
protected java.lang.String namespaceToExternalForm()
Namespace.toExternalForm(BaseID)
.
namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName();
public java.lang.Object getAdapter(java.lang.Class clazz)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |