public class OAVLongIdGenerator extends java.lang.Object implements IOAVIdGenerator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
iscontentid
The flag indicating if content ids should be produced.
|
protected long |
nextid
The id counter.
|
| Constructor and Description |
|---|
OAVLongIdGenerator()
Create a new id generator.
|
OAVLongIdGenerator(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.
|
static void |
main(java.lang.String[] args)
Main for testing.
|
protected long nextid
protected boolean iscontentid
public OAVLongIdGenerator()
public OAVLongIdGenerator(boolean iscontentid)
public java.lang.Object createId(IOAVState state, OAVObjectType type)
createId in interface IOAVIdGeneratorstate - The state.type - The object type.public boolean isId(java.lang.Object id)
isId in interface IOAVIdGeneratorstate - The state.type - The object type.public static void main(java.lang.String[] args)
args -