org.databene.domain.address
Class MobileNumberGenerator

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.MobileNumberGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<PhoneNumber>, NonNullGenerator<PhoneNumber>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class MobileNumberGenerator
extends ThreadSafeNonNullGenerator<PhoneNumber>

Generates mobile phone numbers.

Created: 16.10.2009 07:11:15

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, logger, state
 
Constructor Summary
MobileNumberGenerator()
           
MobileNumberGenerator(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

MobileNumberGenerator

public MobileNumberGenerator()

MobileNumberGenerator

public MobileNumberGenerator(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.