public class ElementIdentifiers
extends java.lang.Object
Constructor and Description |
---|
ElementIdentifiers() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
ElementIdentifier |
ensureUniqueness(ElementIdentifier id)
Checks an ElementIdentifier to ensure it is unique within its specification
|
ElementIdentifier |
getIdentifier(java.lang.String label)
Checks a name for uniqueness, and appends a suffix if necessary.
|
void |
load(YSpecification spec)
Loads the element identifiers for a specification, without any rationalisation
of suffixes.
|
java.util.Map<java.lang.String,java.lang.String> |
rationaliseIfRequired(YSpecification specification)
Rationalises the identifiers in a specification if any of the suffix stores
contains gaps in used suffixes
|
void |
removeIdentifier(ElementIdentifier id)
Removes an ElementIdentifier from the set
|
void |
removeIdentifier(java.lang.String idString) |
public void clear()
public void load(YSpecification spec)
spec
- the spec to loadpublic ElementIdentifier getIdentifier(java.lang.String label)
label
- the label name to checkpublic ElementIdentifier ensureUniqueness(ElementIdentifier id)
id
- the ElementIdentifier to checkpublic void removeIdentifier(ElementIdentifier id)
id
- the ElementIdentifier to removepublic void removeIdentifier(java.lang.String idString)
public java.util.Map<java.lang.String,java.lang.String> rationaliseIfRequired(YSpecification specification)