org.databene.benerator.dataset
Class AtomicDatasetGenerator<E>
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.AtomicDatasetGenerator<E>
- All Implemented Interfaces:
- java.io.Closeable, DatasetBasedGenerator<E>, WeightedDatasetGenerator<E>, Generator<E>, WeightedGenerator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware, org.databene.commons.Weighted
public class AtomicDatasetGenerator<E>
- extends GeneratorProxy<E>
- implements WeightedDatasetGenerator<E>
DatasetBasedGenerator
implementation which bases on an atomic dataset.
Created: 09.03.2011 10:54:28
- Since:
- 0.6.6
- Author:
- Volker Bergmann
Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper |
close, equals, generateFromSource, getSource, getSourceWrapper, hashCode, init, isParallelizable, isThreadSafe, reset, setSource |
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 |
AtomicDatasetGenerator
public AtomicDatasetGenerator(WeightedGenerator<E> source,
java.lang.String nesting,
java.lang.String dataset)
AtomicDatasetGenerator
public AtomicDatasetGenerator(Generator<E> source,
java.lang.String nesting,
java.lang.String dataset,
double weight)
getNesting
public java.lang.String getNesting()
- Specified by:
getNesting
in interface DatasetBasedGenerator<E>
getDataset
public java.lang.String getDataset()
- Specified by:
getDataset
in interface DatasetBasedGenerator<E>
getWeight
public double getWeight()
- Specified by:
getWeight
in interface org.databene.commons.Weighted
generate
public ProductWrapper<E> generate(ProductWrapper<E> wrapper)
- Description copied from interface:
Generator
- Returns an instance of the generic type E, using the
ProductWrapper
instance provided as argument.
The wrapper may wrap a null value as a regular generator product.
If the generator is not available (any more), it returns null instead of
the ProductWrapper instance.
- Specified by:
generate
in interface Generator<E>
- Overrides:
generate
in class GeneratorProxy<E>
generateForDataset
public E generateForDataset(java.lang.String requestedDataset)
- Specified by:
generateForDataset
in interface DatasetBasedGenerator<E>
toString
public java.lang.String toString()
- Overrides:
toString
in class GeneratorProxy<E>
Copyright © 2013. All Rights Reserved.