|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.jabber.MessageID
public class MessageID
Holds a singleton instance of the id generator. It will give you unique id sequences. The unique ID sequence has a header prepended before the sequence number. This is to make the ID attribute conform to the XML Specification. The XML standard states that the unique ID attribute in an XML document must begin with an alphabet(a-z), underscore(_), or colon(:).
Method Summary | |
---|---|
int |
increment()
|
static java.lang.String |
nextID()
retrieves the next ID. |
static java.lang.String |
nextID(int initial)
if this is the first time the method is called, it will initialize the generator to the initial value provided. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int increment()
public static java.lang.String nextID()
public static java.lang.String nextID(int initial)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |