- java.lang.Object
-
- com.appslandia.common.base.InitializeObject
-
- com.appslandia.common.base.WordsGenerator
-
- All Implemented Interfaces:
InitializeSupport,TextGenerator
public class WordsGenerator extends InitializeObject implements TextGenerator
- Author:
- Loc Ha
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWordsGenerator.Alphabet
-
Constructor Summary
Constructors Constructor Description WordsGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringgenerate()protected voidinit()WordsGeneratorsetAlphabet(WordsGenerator.Alphabet alphabet)WordsGeneratorsetLength(int length)booleanverify(String value)-
Methods inherited from class com.appslandia.common.base.InitializeObject
assertNotInitialized, destroy, initialize
-
-
-
-
Method Detail
-
init
protected void init() throws Exception- Specified by:
initin classInitializeObject- Throws:
Exception
-
generate
public String generate()
- Specified by:
generatein interfaceTextGenerator
-
verify
public boolean verify(String value)
- Specified by:
verifyin interfaceTextGenerator
-
setLength
public WordsGenerator setLength(int length)
-
setAlphabet
public WordsGenerator setAlphabet(WordsGenerator.Alphabet alphabet)
-
-