public class StringID extends BaseID
Modifier and Type | Class and Description |
---|---|
static class |
StringID.StringIDNamespace |
Modifier | Constructor and Description |
---|---|
|
StringID() |
protected |
StringID(Namespace n,
String s)
Protected constructor for factory-based construction
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
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 String |
namespaceGetName()
Called by
Namespace.getNameForID(BaseID) . |
protected int |
namespaceHashCode()
Called by
Namespace.getHashCodeForID(BaseID) . |
protected void |
setEmptyNamespace() |
String |
toExternalForm()
Get this ID instance in String form.
|
String |
toString() |
getAdapter, namespaceToExternalForm
protected String value
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class BaseID
public boolean equals(Object o)
public String getName()
ID
public int hashCode()
public Namespace getNamespace()
ID
getNamespace
in interface ID
getNamespace
in class BaseID
public String toExternalForm()
ID
toExternalForm
in interface ID
toExternalForm
in class BaseID
public String toString()
protected int namespaceCompareTo(BaseID obj)
BaseID
namespaceCompareTo
in class BaseID
obj
- the other ID to compare to. Will not be null
.Comparable
contract.protected boolean namespaceEquals(BaseID obj)
BaseID
Namespace.testIDEquals(BaseID, BaseID)
.namespaceEquals
in class BaseID
obj
- the other ID to test against. May be null
.true
if this ID is equal to the given ID.
false
otherwise.protected String namespaceGetName()
BaseID
Namespace.getNameForID(BaseID)
.namespaceGetName
in class BaseID
null
. Value
returned should be unique within this Namespace.protected int namespaceHashCode()
BaseID
Namespace.getHashCodeForID(BaseID)
.namespaceHashCode
in class BaseID
protected void setEmptyNamespace()
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.