|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.config.IDGenerator
public class IDGenerator
Class repsonsible for generating unique IDs for a particular collection.
IDGenerator instances are stashed in the org.dlese.dpc.schemedit.ids.IDManager
.
$Id: IDGenerator.java,v 1.4 2009/03/20 23:33:56 jweather Exp $
Constructor Summary | |
---|---|
IDGenerator()
Constructor for the IDGenerator object |
|
IDGenerator(String idFileName,
String idPrefix)
|
|
IDGenerator(String idFilename,
String idPrefix,
Collection idList)
Constructor for the IDGenerator object |
Method Summary | |
---|---|
String |
getExampleID()
Gets the exampleID attribute of the IDGenerator object |
String |
getFirstID()
Gets the firstID attribute of the IDGenerator object |
String |
getIdPrefix()
Gets the idPrefix attribute of the IDGenerator object |
String |
getLastID()
Returns the last ID Generated |
void |
init(Collection IDs)
Sets the count attribute of the IDGenerator object. |
static void |
main(String[] args)
The main program for the IDGenerator class |
String |
nextID()
Gets next available number as string and updates id file |
void |
report()
|
void |
setIdPrefix(String prefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IDGenerator()
public IDGenerator(String idFileName, String idPrefix)
public IDGenerator(String idFilename, String idPrefix, Collection idList)
idFilename
- NOT YET DOCUMENTEDidPrefix
- NOT YET DOCUMENTEDidList
- NOT YET DOCUMENTEDMethod Detail |
---|
public void init(Collection IDs)
IDs
- The new count valuepublic String getIdPrefix()
public void setIdPrefix(String prefix)
public String getExampleID()
public String getFirstID()
public String nextID()
public String getLastID()
public static void main(String[] args)
args
- The command line argumentspublic void report()
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |