org.databene.domain.br
Class CNPJGenerator
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.sample.WeightedCSVSampleGenerator<java.lang.String>
org.databene.domain.br.CNPJGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.lang.String>, NonNullGenerator<java.lang.String>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class CNPJGenerator
- extends WeightedCSVSampleGenerator<java.lang.String>
- implements NonNullGenerator<java.lang.String>
Generates Brazilian CNPJ numbers.
CNPJ stands for Cadastro Nacional da Pessoa JurÃdica
and is a tax payer number assigned to a
legal person (Pessoa JurÃdica).
- Author:
- Eric Chaves
- See Also:
- "http://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F%C3%ADsicas"
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 |
CNPJGenerator
public CNPJGenerator()
CNPJGenerator
public CNPJGenerator(boolean formatted)
generate
public java.lang.String generate()
- Specified by:
generate
in interface NonNullGenerator<java.lang.String>
generate
public ProductWrapper<java.lang.String> generate(ProductWrapper<java.lang.String> 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<java.lang.String>
- Overrides:
generate
in class GeneratorProxy<java.lang.String>
Copyright © 2013. All Rights Reserved.