org.databene.domain.address
Class AddressGenerator

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<E>
      extended by org.databene.benerator.wrapper.CompositeGenerator<Address>
          extended by org.databene.domain.address.AddressGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<Address>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class AddressGenerator
extends CompositeGenerator<Address>

Generates Address objects.

Created: 11.06.2006 08:07:40

Since:
0.1
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.wrapper.CompositeGenerator
components, generatedType
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, state
 
Constructor Summary
AddressGenerator()
           
AddressGenerator(Country country)
           
 
Method Summary
 Address generate()
          Returns an instance of the generic type E.
 void init(GeneratorContext context)
           
 void setCountry(Country country)
           
 void setDataset(java.lang.String dataset)
           
 java.lang.String toString()
           
 
Methods inherited from class org.databene.benerator.wrapper.CompositeGenerator
getGeneratedType, isParallelizable, isThreadSafe, registerComponent, registerComponent, registerComponents
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, reset, wasInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddressGenerator

public AddressGenerator()

AddressGenerator

public AddressGenerator(Country country)
Method Detail

setCountry

public void setCountry(Country country)

setDataset

public void setDataset(java.lang.String dataset)

init

public void init(GeneratorContext context)
Specified by:
init in interface Generator<Address>
Overrides:
init in class AbstractGenerator<Address>

generate

public Address generate()
                 throws IllegalGeneratorStateException
Description copied from interface: Generator
Returns an instance of the generic type E.

Throws:
IllegalGeneratorStateException

toString

public java.lang.String toString()
Overrides:
toString in class AbstractGenerator<Address>


Copyright © 2011. All Rights Reserved.