From ece7d18cf35374bf4e26d041799cda8f791c89f8 Mon Sep 17 00:00:00 2001 From: gregor Date: Mon, 7 Jul 2003 10:58:37 +0000 Subject: Initial commit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@2 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../moa/spss/server/util/IdGenerator.html | 248 +++++++++++++++++++++ 1 file changed, 248 insertions(+) create mode 100644 spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/server/util/IdGenerator.html (limited to 'spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/server/util/IdGenerator.html') diff --git a/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/server/util/IdGenerator.html b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/server/util/IdGenerator.html new file mode 100644 index 000000000..bf96d024d --- /dev/null +++ b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/server/util/IdGenerator.html @@ -0,0 +1,248 @@ + + + + + + +MOA SP/SS Server Internal API: Class IdGenerator + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +at.gv.egovernment.moa.spss.server.util +
+Class IdGenerator

+
+java.lang.Object
+  |
+  +--at.gv.egovernment.moa.spss.server.util.IdGenerator
+
+
+
+
public class IdGenerator
extends Object
+ +

+Generate unique ID values for various objects in the response. +

+

+
Version:
$Id$
+
Author:
Patrick Peck
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
IdGenerator(String base, + Set reserved) + +
+          Create a new IdGenerator.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringnextId() + +
+          Create the next ID value in the sequence.
+ StringuniqueId() + +
+          Create the next unique ID value which is unique in the reserved ID set. + +
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+IdGenerator

+
+public IdGenerator(String base,
+                   Set reserved)
+
+
Create a new IdGenerator.
+
Parameters:
base - A base value to append the IDs to. The creator of this object + should provide a base value, so that appending the counter leads to unique + IDs.
reserved - The Set of reserved IDs. A call to + uniqueId() will respect the reserved IDs.
+
+
+ + + + + + + + +
+Method Detail
+ +

+nextId

+
+public String nextId()
+
+
Create the next ID value in the sequence.
+
Returns:
The next ID value in the sequence.
+
+
+
+ +

+uniqueId

+
+public String uniqueId()
+
+
Create the next unique ID value which is unique in the reserved ID set. + + The created ID is added to the set of reserved IDs.
+
Returns:
The next ID value.
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + -- cgit v1.2.3