|
||||||||||
| 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<S,P>
public abstract class GeneratorWrapper<S,P>
Abstract generator class that wraps another generator object (in a source property)
and delegates life cycle control to it.
Created: 12.12.2006 19:13:55
| Field Summary | |
|---|---|
protected Generator<S> |
source
|
| Fields inherited from class org.databene.benerator.util.AbstractGenerator |
|---|
context, state |
| Constructor Summary | |
|---|---|
GeneratorWrapper(Generator<S> source)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the generator. |
boolean |
equals(java.lang.Object other)
|
Generator<S> |
getSource()
Returns the source generator |
int |
hashCode()
|
void |
init(GeneratorContext context)
|
boolean |
isParallelizable()
|
boolean |
isThreadSafe()
|
void |
reset()
|
void |
setSource(Generator<S> source)
Sets the source generator |
java.lang.String |
toString()
|
| 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 |
| Methods inherited from interface org.databene.benerator.Generator |
|---|
generate, getGeneratedType |
| Field Detail |
|---|
protected Generator<S> source
| Constructor Detail |
|---|
public GeneratorWrapper(Generator<S> source)
| Method Detail |
|---|
public Generator<S> getSource()
public void setSource(Generator<S> source)
public boolean isThreadSafe()
public boolean isParallelizable()
public void init(GeneratorContext context)
init in interface Generator<P>init in class AbstractGenerator<P>public void reset()
reset in interface Resettablereset in class AbstractGenerator<P>public void close()
Generator
close in interface java.io.Closeableclose in interface Generator<P>close in class AbstractGenerator<P>public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class AbstractGenerator<P>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||