public abstract class BaseID extends Object implements ID
| Modifier | Constructor and Description |
|---|---|
|
BaseID() |
protected |
BaseID(Namespace namespace) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
Object |
getAdapter(Class clazz) |
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)
|
protected abstract boolean |
namespaceEquals(BaseID o)
Called by
Namespace.testIDEquals(BaseID, BaseID). |
protected abstract String |
namespaceGetName()
Called by
Namespace.getNameForID(BaseID). |
protected abstract int |
namespaceHashCode()
Called by
Namespace.getHashCodeForID(BaseID). |
protected String |
namespaceToExternalForm()
Called by
Namespace.toExternalForm(BaseID). |
String |
toExternalForm()
Get this ID instance in String form.
|
protected Namespace namespace
public BaseID()
protected BaseID(Namespace namespace)
public int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object o)
public String getName()
IDpublic Namespace getNamespace()
IDgetNamespace in interface IDpublic int hashCode()
public String toExternalForm()
IDtoExternalForm in interface IDprotected abstract int namespaceCompareTo(BaseID o)
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 String namespaceGetName()
Namespace.getNameForID(BaseID).null. Value
returned should be unique within this Namespace.protected abstract int namespaceHashCode()
Namespace.getHashCodeForID(BaseID).protected String namespaceToExternalForm()
Namespace.toExternalForm(BaseID).
namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName();
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.