Package org.databene.benerator.wrapper

Defines generators that wrap other generators and forward or convert their products

See:
          Description

Class Summary
AccessingGenerator<S,P> Returns the results of an accessor that is applied on a constant provider object.
AlternativeGenerator<E> On each call to generate(), it chooses a generator from a collection, calls its generate() method and returns the product.
AsBigDecimalGeneratorWrapper<E extends Number> Converts the Number products of another Generator to BigDecimal.
AsBigIntegerGeneratorWrapper<E extends Number> Converts the Number products of another Generator to BigInteger.
AsByteGeneratorWrapper<E extends Number> Converts the Number products of another Generator to Byte.
AsDoubleGeneratorWrapper<E extends Number> Double Generator that maps products from a generator of a different number type.
AsFloatGeneratorWrapper<E extends Number> Converts the Number products of another Generator to Float.
AsIntegerGeneratorWrapper<E extends Number> Converts the Number products of another Generator to Integer.
AsLongGeneratorWrapper<E extends Number> Long Generator that maps products from a Double generator.
AsNonNullGenerator<E> Adapter class which makes an arbitrary Generator available as NonNullGenerator.
AsShortGeneratorWrapper<E extends Number> Converts the Number products of another Generator to Short.
AsStringGenerator<E> Wraps another Generator and converts its products to Strings.
ByteArrayGenerator Creates arrays of random length filled with random bytes.
CardinalGenerator<S,P> Combines a a random number a source generator's products into a collection.
CollectionGenerator<C extends Collection,I> Combines a a random number a source generator's products into a collection.
CompositeGenerator<E> Generator implementation that makes use of other ContextAware objects by which its threading support is influenced.
CompositeStringGenerator Uses n String generators and appends the output of each one in each generate() call.
ConcatenatingGenerator Generator implementation that wraps several String generators and concatenates their results to a composite String.
ConvertingGenerator<S,T> Reads products from a source Generator and applies a Converter to transform them into the target products.
CyclicGeneratorProxy<E> Generator proxy that 'loops' through a source Generator, calling reset() each time the source becomes unavailable.
DataSourceGenerator<E> Generator implementation which reads and forwards data from a DataSource.
EntityPartSource EntitySource implementation that looks up an entity by its name (EntityPartSource.productName) in the context, accesses a 'part' component of it (by its EntityPartSource.partName), and provides the entities contained within in the form of a DataIterator.
GeneratorChain<E> Proxies several source generators, initially returning products of the first source as long as it is available, then of the second source and son on.
GeneratorProxy<E> Wraps another Generator of same product type.
GeneratorWrapper<S,P> Abstract generator class that wraps another generator object (in a source property) and delegates life cycle control to it.
IteratingGenerator<E> Iterates over Iterators that are provided by an Iterable.
LastFlagGenerator Proxies a Generator, examines its generated ProductWrappers for the "last" tag and, if one is found, replaces a boolean array value at a given index (LastFlagGenerator.indexOfLastFlag) with true, otherwise with false.
LastProductDetector<E> Wraps another Generator, finds out which is the last generated object and tags that with "last"="true".
LengthGenerator<S,P> Abstract parent class for Generators that generate objects of a variable length.
MessageGenerator Assembles the output of several source generators by a java.text.MessageFormat.
MultiGeneratorWrapper<S,P> Parent class for wrapping several other generators (in a sources property) and refining a composite state from them.
MultiSourceArrayGenerator<S> Keeps an array of generators, of which it combines the products to an array.
NonClosingGeneratorProxy<E> Generator proxy that prevents its delegate from being closed.
NonNullGeneratorProxy<E> GeneratorProxy implementation which implements the NonNullGenerator interface and supports its implementors as source Generator.
NonNullGeneratorWrapper<S,P> GeneratorWrapper for NonNullGenerators.
NShotGeneratorProxy<E> Generator proxy which forwards a limited number of products from another generator.
NullInjectingGeneratorProxy<E> GeneratorProxy implementation which injects a given quota of null values in the original generator's results.
NullStartingGenerator<E> Generator implementation which wraps a source Generator but generates a null value before forwarding the products of the source.
OffsetBasedGenerator<E> Generator proxy which hides the first products of its source generator.
ProductWrapper<E> Helper class for the Generator class.
RepeatGeneratorProxy<E> A generator proxy that forwards the output of another generator with a random number of repetitions.
SimpleMultiSourceArrayGenerator<S> Keeps an array of generators, of which it combines the products to an array.
SingleSourceArrayGenerator<S,P> Assembles the output of a source generator into an array of random length.
SingleSourceCollectionGenerator<I,C extends Collection<I>> Generator which takes one or more products from a source generator and wraps them with a Collection.
SkipGeneratorProxy<E> This forwards a source generator's products.
SynchronizedGeneratorProxy<E> Synchronized wrapper class for non-thread-safe Generator implementations.
UniqueMultiSourceArrayGenerator<S> Creates arrays of unique combinations of the output of other generators.
ValidatingGeneratorProxy<E> Generator proxy that uses another generator for creating values and filters out invalid ones.
WeighingGeneratorWrapper<E> Wraps an ordinary Generator with a WeightedGenerator interface requiring an explicit weight setting.
WeightedGeneratorGenerator<E> Generator that wraps several other 'source generators' and assigns a weight to each one.
WrapperFactory Provides wrappers for number Generators that converts their products to a target Number type.
 

Package org.databene.benerator.wrapper Description

Defines generators that wrap other generators and forward or convert their products



Copyright © 2013. All Rights Reserved.