|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<E,E>
org.databene.benerator.wrapper.GeneratorProxy<java.lang.String>
org.databene.benerator.primitive.regex.RegexStringGenerator
public class RegexStringGenerator
Generates Strings that comply to a regular expression.
Created: 18.07.2006 19:32:52
| Field Summary |
|---|
| Fields inherited from class org.databene.benerator.wrapper.GeneratorWrapper |
|---|
source |
| Fields inherited from class org.databene.benerator.util.AbstractGenerator |
|---|
context, state |
| Constructor Summary | |
|---|---|
RegexStringGenerator()
Initializes the generator to an empty regular expression, a maxQuantity of 30 and the fallback locale |
|
RegexStringGenerator(int maxQuantity)
Initializes the generator to an empty regular expression and the fallback locale |
|
RegexStringGenerator(java.lang.String pattern)
Initializes the generator to a maxQuantity of 30 and the fallback locale |
|
RegexStringGenerator(java.lang.String pattern,
int quantityLimit)
Initializes the generator to the fallback locale |
|
RegexStringGenerator(java.lang.String pattern,
java.lang.Integer quantityLimit,
boolean unique)
Initializes the generator with the String representation of a regular expression |
|
| Method Summary | |
|---|---|
java.util.Locale |
getLocale()
|
int |
getMaxQuantity()
|
java.lang.String |
getPattern()
Sets the String representation of the regular expression |
void |
init(GeneratorContext context)
ensures consistency of the generators state |
void |
setLocale(java.util.Locale locale)
|
void |
setMaxQuantity(int quantityLimit)
|
void |
setPattern(java.lang.String pattern)
Returns the String representation of the regular expression |
java.lang.String |
toString()
|
| Methods inherited from class org.databene.benerator.wrapper.GeneratorProxy |
|---|
generate, getGeneratedType |
| Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper |
|---|
close, equals, getSource, hashCode, isParallelizable, isThreadSafe, reset, setSource |
| Methods inherited from class org.databene.benerator.util.AbstractGenerator |
|---|
assertInitialized, assertNotInitialized, wasInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RegexStringGenerator()
public RegexStringGenerator(int maxQuantity)
public RegexStringGenerator(java.lang.String pattern)
public RegexStringGenerator(java.lang.String pattern,
int quantityLimit)
public RegexStringGenerator(java.lang.String pattern,
java.lang.Integer quantityLimit,
boolean unique)
| Method Detail |
|---|
public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
public int getMaxQuantity()
public void setMaxQuantity(int quantityLimit)
public void init(GeneratorContext context)
init in interface Generator<java.lang.String>init in class GeneratorWrapper<java.lang.String,java.lang.String>public java.lang.String toString()
toString in class GeneratorWrapper<java.lang.String,java.lang.String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||