public interface IdGenerator
| Modifier and Type | Method and Description |
|---|---|
void |
addId(String id)
Adds an id to this generator.
|
void |
addIds(IdGenerator generator)
Adds all ids from the specified id generator.
|
Set<String> |
getIds()
Returns the ids created/managed by this id generator
|
IdGenerator |
newChild()
Returns a new child id generator.
|
String |
newId()
Generates a new id and adds it to this id generator.
|
String |
newId(String prefix)
Generates a new id with the specified prefix and adds it to rhis id
generator.
|
void addId(String id)
id - id to addvoid addIds(IdGenerator generator)
generator - id generator that contains the ids that shall be addedString newId()
String newId(String prefix)
prefix - id prefixIdGenerator newChild()