public class Identifier extends java.lang.Object implements java.io.Serializable, Comparable, Nameable
| Modifier and Type | Field and Description |
|---|---|
static Identifier |
ANONYMOUS |
| Constructor and Description |
|---|
Identifier() |
Identifier(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object c)
Returns a number representing the ordering relationship that
the object has with the given object.
|
boolean |
equals(java.lang.Object c)
Returns true if this object is equal to the given object.
|
static Identifier[] |
getIdentifiers(IdGroup idGroup)
Translates an IdGroup into an array of identifiers
|
static Identifier[] |
getIdentifiers(java.lang.String[] names)
Translates an an array of strings into an array of identifiers
|
java.lang.String |
getName()
get the name of this object.
|
static java.lang.String[] |
getNames(Identifier[] ids)
Translates an array of identifiers into an array of strings
|
static java.lang.String[] |
getNames(Identifier[] ids,
int toIgnore)
Translates an array of identifiers into an array of strings, with optional removal of particular identifier
|
static java.lang.String[] |
getNames(IdGroup ids)
Translates an IdGroup into an array of strings
|
static java.lang.String[] |
getNames(IdGroup ids,
int toIgnore)
Translates an IDgroup into an array of strings, with optional removal of particular identifier
|
static java.lang.String[] |
getNames(IdGroup ids,
int[] toIgnore)
Translates an IDgroup into an array of strings, with optional removal of particular identifier
|
void |
setName(java.lang.String s)
set the name of this object.
|
java.lang.String |
toString() |
public static Identifier ANONYMOUS
public Identifier()
public Identifier(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object c)
ComparablecompareTo in interface Comparablepublic boolean equals(java.lang.Object c)
Comparableequals in interface Comparableequals in class java.lang.Objectpublic java.lang.String getName()
Nameablepublic void setName(java.lang.String s)
Nameablepublic static final java.lang.String[] getNames(Identifier[] ids)
public static final java.lang.String[] getNames(Identifier[] ids, int toIgnore)
toIgnoreIndex - the index of an idetifier to ignore, if <0 no element is ignoredpublic static final Identifier[] getIdentifiers(java.lang.String[] names)
public static final Identifier[] getIdentifiers(IdGroup idGroup)
public static final java.lang.String[] getNames(IdGroup ids)
public static final java.lang.String[] getNames(IdGroup ids, int toIgnore)
toIgnoreIndex - the index of an idetifier to ignore, if <0 no element is ignoredpublic static final java.lang.String[] getNames(IdGroup ids, int[] toIgnore)
toIgnoreIndex - the indexes of an idetifier to ignore, does not need to be sorted