|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthelma.objectmodel.dom.XmlIDGenerator
public class XmlIDGenerator
| Constructor Summary | |
|---|---|
XmlIDGenerator()
Builds a new IDGenerator starting with 0. |
|
XmlIDGenerator(long value)
Builds a new IDGenerator starting with value. |
|
| Method Summary | |
|---|---|
static XmlIDGenerator |
getIDGenerator(java.io.File file)
Read an IDGenerator from file |
long |
getValue()
Get the current counter value |
java.lang.String |
newID()
Delivers a unique id and increases counter by 1. |
static void |
saveIDGenerator(XmlIDGenerator idgen,
java.io.File file)
Save an id generator to a file. |
protected void |
setValue(long value)
Set the counter to a new value |
java.lang.String |
toString()
Returns a string representation of this IDGenerator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlIDGenerator()
public XmlIDGenerator(long value)
| Method Detail |
|---|
public java.lang.String newID()
protected void setValue(long value)
public long getValue()
public java.lang.String toString()
toString in class java.lang.Object
public static XmlIDGenerator getIDGenerator(java.io.File file)
throws ObjectNotFoundException
file -
ObjectNotFoundException
public static void saveIDGenerator(XmlIDGenerator idgen,
java.io.File file)
throws java.io.IOException
idgen - file -
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||