|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproper.util.TemporaryName
public class TemporaryName
This class creates temporary names from a given prefix, basically adding numbers to the end and incrementing them.
| Constructor Summary | |
|---|---|
TemporaryName(java.lang.String prefix)
initizializes the generator with alphanumeric generation |
|
TemporaryName(java.lang.String prefix,
boolean alphanum)
initizializes the generator |
|
| Method Summary | |
|---|---|
boolean |
getAlphaNumeric()
returns whether alphanumeric suffices are generated or not |
java.lang.String |
getCurrent()
returns the current temporary name |
java.lang.String |
getPrefix()
returns the prefix for creating temporary names |
java.lang.String |
next()
returns the next temporary name |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemporaryName(java.lang.String prefix)
prefix - the prefix to work with
public TemporaryName(java.lang.String prefix,
boolean alphanum)
prefix - the prefix to work withalphanum - if TRUE generates 0-9 and then A-Z suffices, if FALSE
then only numeric ones| Method Detail |
|---|
public java.lang.String getPrefix()
public boolean getAlphaNumeric()
public java.lang.String getCurrent()
public java.lang.String next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||