Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.cantaloop.cgimlet
Class IDManager  view IDManager download IDManager.java

java.lang.Object
  extended byorg.cantaloop.cgimlet.IDManager

public class IDManager
extends java.lang.Object

The IDManager helps you to avaid naming-conflicts in your generated code. Just append the next id to your identifiers.

Version:
@version@ ($Revision: 1.6 $)

Field Summary
private  int m_currentID
           
 
Constructor Summary
IDManager()
           
 
Method Summary
 java.lang.String currentID()
          Returns the current id.
 java.lang.String nextID()
          Sets the id to its next value and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_currentID

private int m_currentID
Constructor Detail

IDManager

public IDManager()
Method Detail

nextID

public java.lang.String nextID()
Sets the id to its next value and returns it.


currentID

public java.lang.String currentID()
Returns the current id.