|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jwalk.gen.StringGenerator
public class StringGenerator
StringGenerator is a custom generator to synthesise string values. Rather than produce empty strings, this custom StringGenerator produces conventional strings, starting with each letter of the alphabet.
Constructor Summary | |
---|---|
StringGenerator()
Constructs a StringGenerator. |
Method Summary | |
---|---|
boolean |
canCreate(java.lang.Class<?> type)
Reports whether this StringGenerator can create a given type. |
java.lang.Object |
nextValue(java.lang.Class<?> type)
Returns the next String value in sequence. |
void |
setOwner(MasterGenerator generator)
Sets the owning MasterGenerator for this CustomGenerator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringGenerator()
Method Detail |
---|
public boolean canCreate(java.lang.Class<?> type)
canCreate
in interface Generator
type
- the requested type.
public java.lang.Object nextValue(java.lang.Class<?> type)
nextValue
in interface Generator
type
- the requested type.
public void setOwner(MasterGenerator generator)
setOwner
in interface CustomGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |