|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.compiler.IDHelper
public class IDHelper
A usefull class to generate Ids.
Created: 27 nov. 2009
| Field Summary | |
|---|---|
protected Map<String,Integer> |
autoGenIds
Counter by type |
protected static org.apache.commons.logging.Log |
log
Logger |
protected boolean |
optimize
Flag to use optimized id |
protected int |
optimizedAutogenId
Optimized Counter |
protected Map<Object,String> |
uniqueIds
Maps of uniqued id for objects used in compiler |
| Constructor Summary | |
|---|---|
IDHelper(boolean optimize)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
String |
getUniqueId(Object object)
|
String |
nextId(String name)
|
void |
revertId(String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
protected final Map<String,Integer> autoGenIds
protected final Map<Object,String> uniqueIds
protected int optimizedAutogenId
protected final boolean optimize
| Constructor Detail |
|---|
public IDHelper(boolean optimize)
| Method Detail |
|---|
public String nextId(String name)
public void revertId(String name)
public String getUniqueId(Object object)
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||