public class IDGenerator
extends java.lang.Object
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 and Description |
---|
IDGenerator()
Constructor for the IDGenerator object
|
IDGenerator(java.lang.String idFileName,
java.lang.String idPrefix) |
IDGenerator(java.lang.String idFilename,
java.lang.String idPrefix,
java.util.Collection idList)
Constructor for the IDGenerator object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExampleID()
Gets the exampleID attribute of the IDGenerator object
|
java.lang.String |
getFirstID()
Gets the firstID attribute of the IDGenerator object
|
java.lang.String |
getIdPrefix()
Gets the idPrefix attribute of the IDGenerator object
|
java.lang.String |
getLastID()
Returns the last ID Generated
|
void |
init(java.util.Collection IDs)
Sets the count attribute of the IDGenerator object.
|
static void |
main(java.lang.String[] args)
The main program for the IDGenerator class
|
java.lang.String |
nextID()
Gets next available number as string and updates id file
|
void |
report() |
void |
setIdPrefix(java.lang.String prefix) |
public IDGenerator()
public IDGenerator(java.lang.String idFileName, java.lang.String idPrefix)
public IDGenerator(java.lang.String idFilename, java.lang.String idPrefix, java.util.Collection idList)
idFilename
- NOT YET DOCUMENTEDidPrefix
- NOT YET DOCUMENTEDidList
- NOT YET DOCUMENTEDpublic void init(java.util.Collection IDs)
IDs
- The new count valuepublic java.lang.String getIdPrefix()
public void setIdPrefix(java.lang.String prefix)
public java.lang.String getExampleID()
public java.lang.String getFirstID()
public java.lang.String nextID()
public java.lang.String getLastID()
public static void main(java.lang.String[] args)
args
- The command line argumentspublic void report()