|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Generator<E>
This is the basic Generator interface, the mother of all generators.
Generator States
A Generator may be in one of three states:
| Method Summary | |
|---|---|
void |
close()
Closes the generator. |
E |
generate()
Returns an instance of the generic type E. |
java.lang.Class<E> |
getGeneratedType()
Declares the type of the objects returned by the generate() method. |
void |
init(GeneratorContext context)
|
boolean |
wasInitialized()
|
| Methods inherited from interface org.databene.commons.ThreadAware |
|---|
isParallelizable, isThreadSafe |
| Methods inherited from interface org.databene.commons.Resettable |
|---|
reset |
| Method Detail |
|---|
java.lang.Class<E> getGeneratedType()
void init(GeneratorContext context)
boolean wasInitialized()
E generate()
void close()
close in interface java.io.Closeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||