public class OAVNameIdGenerator extends java.lang.Object implements IOAVIdGenerator
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
counters
The id counter map (type -> count).
|
protected boolean |
iscontentid
The flag indicating if content ids should be produced.
|
Constructor and Description |
---|
OAVNameIdGenerator()
Create a new id generator.
|
OAVNameIdGenerator(boolean iscontentid)
Create a new id generator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createId(IOAVState state,
OAVObjectType type)
Create a unique id.
|
boolean |
isId(java.lang.Object id)
Test if an object is an id.
|
protected java.util.Map counters
protected boolean iscontentid
public OAVNameIdGenerator()
public OAVNameIdGenerator(boolean iscontentid)
public java.lang.Object createId(IOAVState state, OAVObjectType type)
createId
in interface IOAVIdGenerator
state
- The state.type
- The object type.public boolean isId(java.lang.Object id)
isId
in interface IOAVIdGenerator
state
- The state.type
- The object type.