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, namespaceToExternalFormprotected String value
public int compareTo(Object o)
compareTo in interface ComparablecompareTo in class BaseIDpublic boolean equals(Object o)
public String getName()
IDpublic int hashCode()
public Namespace getNamespace()
IDgetNamespace in interface IDgetNamespace in class BaseIDpublic String toExternalForm()
IDtoExternalForm in interface IDtoExternalForm in class BaseIDpublic String toString()
protected int namespaceCompareTo(BaseID obj)
BaseIDnamespaceCompareTo 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 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()
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.