org.databene.domain.address
Class MobileNumberGenerator

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

public class MobileNumberGenerator
extends ThreadSafeGenerator<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, state
 
Constructor Summary
MobileNumberGenerator()
           
MobileNumberGenerator(Country country)
           
 
Method Summary
 PhoneNumber generate()
          Returns an instance of the generic type E.
 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.ThreadSafeGenerator
isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, init, reset, toString, wasInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobileNumberGenerator

public MobileNumberGenerator()

MobileNumberGenerator

public MobileNumberGenerator(Country country)
Method Detail

setCountry

public void setCountry(Country country)

generate

public PhoneNumber generate()
Description copied from interface: Generator
Returns an instance of the generic type E.


getGeneratedType

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



Copyright © 2011. All Rights Reserved.