org.databene.domain.product
Class EANGenerator
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.wrapper.NonNullGeneratorProxy<java.lang.String>
org.databene.domain.product.EANGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.lang.String>, NonNullGenerator<java.lang.String>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class EANGenerator
- extends NonNullGeneratorProxy<java.lang.String>
Generates EAN8 and EAN13 codes at the configured ratio.
Created: 30.07.2007 21:23:44
- Author:
- Volker Bergmann
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 |
EANGenerator
public EANGenerator()
EANGenerator
public EANGenerator(boolean unique)
isUnique
public boolean isUnique()
setUnique
public void setUnique(boolean unique)
getGeneratedType
public java.lang.Class<java.lang.String> getGeneratedType()
- Description copied from interface:
Generator
- Declares the type of the objects returned by the generate() method.
- Specified by:
getGeneratedType
in interface Generator<java.lang.String>
- Overrides:
getGeneratedType
in class GeneratorProxy<java.lang.String>
init
public void init(GeneratorContext context)
- Specified by:
init
in interface Generator<java.lang.String>
- Overrides:
init
in class GeneratorWrapper<java.lang.String,java.lang.String>
toString
public java.lang.String toString()
- Overrides:
toString
in class GeneratorProxy<java.lang.String>
Copyright © 2013. All Rights Reserved.