Package org.nuiton.jaxx.compiler
Class IDHelper
- java.lang.Object
-
- org.nuiton.jaxx.compiler.IDHelper
-
public class IDHelper extends Object
A usefull class to generate Ids. Created: 27 nov. 2009- Version:
- $Revision$
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Integer>autoGenIdsCounter by typeprotected static org.apache.logging.log4j.LoggerlogLoggerprotected booleanoptimizeFlag to use optimized idprotected intoptimizedAutogenIdOptimized Counterprotected Map<Object,String>uniqueIdsMaps of uniqued id for objects used in compiler
-
Constructor Summary
Constructors Constructor Description IDHelper(boolean optimize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()StringgetUniqueId(Object object)StringnextId(String name)
-
-
-
Field Detail
-
log
protected static final org.apache.logging.log4j.Logger log
Logger
-
uniqueIds
protected final Map<Object,String> uniqueIds
Maps of uniqued id for objects used in compiler
-
optimizedAutogenId
protected int optimizedAutogenId
Optimized Counter
-
optimize
protected final boolean optimize
Flag to use optimized id
-
-