org.databene.domain.address
Class CountryGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<E,E>
org.databene.benerator.wrapper.GeneratorProxy<E>
org.databene.benerator.dataset.AbstractDatasetGenerator<Country>
org.databene.domain.address.CountryGenerator
- All Implemented Interfaces:
- java.io.Closeable, DatasetBasedGenerator<Country>, Generator<Country>, NonNullGenerator<Country>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class CountryGenerator
- extends AbstractDatasetGenerator<Country>
- implements NonNullGenerator<Country>
Generates a random country.
Created: 11.06.2006 08:15:51
- Author:
- Volker Bergmann
Methods inherited from class org.databene.benerator.dataset.AbstractDatasetGenerator |
createAtomicDatasetGenerator, createCompositeDatasetGenerator, createDatasetGenerator, generateForDataset, getDataset, getNesting, getSource, getWeight, init, randomDataset, setDataset, setNesting, supportsDataset |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.databene.commons.ThreadAware |
isParallelizable, isThreadSafe |
Methods inherited from interface org.databene.commons.Resettable |
reset |
CountryGenerator
public CountryGenerator()
CountryGenerator
public CountryGenerator(java.lang.String datasetName)
isAtomic
protected boolean isAtomic(Dataset dataset)
- Overrides:
isAtomic
in class AbstractDatasetGenerator<Country>
createGeneratorForAtomicDataset
protected WeightedGenerator<Country> createGeneratorForAtomicDataset(Dataset dataset)
- Specified by:
createGeneratorForAtomicDataset
in class AbstractDatasetGenerator<Country>
createGeneratorForCountry
protected WeightedDatasetGenerator<Country> createGeneratorForCountry(Country country)
generate
public Country generate()
- Specified by:
generate
in interface NonNullGenerator<Country>
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractDatasetGenerator<Country>
Copyright © 2013. All Rights Reserved.