org.databene.domain.address
Class PhoneNumberGenerator

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<E>
      extended by org.databene.benerator.util.AbstractNonNullGenerator<E>
          extended by org.databene.benerator.util.ThreadSafeNonNullGenerator<PhoneNumber>
              extended by org.databene.domain.address.PhoneNumberGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<PhoneNumber>, NonNullGenerator<PhoneNumber>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class PhoneNumberGenerator
extends ThreadSafeNonNullGenerator<PhoneNumber>

Generates landline or mobile phone numbers in a given Country.

Created: 16.10.2009 05:33:57

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, logger, state
 
Constructor Summary
PhoneNumberGenerator(Country country)
           
 
Method Summary
 PhoneNumber generate()
           
 java.lang.Class<PhoneNumber> getGeneratedType()
          Declares the type of the objects returned by the generate() method.
 void setCountry(Country country)
           
 
Methods inherited from class org.databene.benerator.util.ThreadSafeNonNullGenerator
isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.benerator.util.AbstractNonNullGenerator
generate
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, getResultWrapper, init, reset, toString, wasInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.databene.benerator.Generator
close, init, wasInitialized
 
Methods inherited from interface org.databene.commons.Resettable
reset
 

Constructor Detail

PhoneNumberGenerator

public PhoneNumberGenerator(Country country)
Method Detail

setCountry

public void setCountry(Country country)

getGeneratedType

public java.lang.Class<PhoneNumber> getGeneratedType()
Description copied from interface: Generator
Declares the type of the objects returned by the generate() method.


generate

public PhoneNumber generate()
Specified by:
generate in interface NonNullGenerator<PhoneNumber>
Specified by:
generate in class AbstractNonNullGenerator<PhoneNumber>


Copyright © 2013. All Rights Reserved.