org.databene.domain.person
Class EMailAddressGenerator

java.lang.Object
  extended by org.databene.domain.person.EMailAddressBuilder
      extended by org.databene.domain.person.EMailAddressGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<java.lang.String>, NonNullGenerator<java.lang.String>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class EMailAddressGenerator
extends EMailAddressBuilder
implements NonNullGenerator<java.lang.String>

Generates EMail Addresses.

Created at 09.04.2008 01:34:17

Since:
0.5.1
Author:
Volker Bergmann

Constructor Summary
EMailAddressGenerator()
           
EMailAddressGenerator(java.lang.String dataset)
           
 
Method Summary
 void close()
          Closes the generator.
 java.lang.String generate()
           
 ProductWrapper<java.lang.String> generate(ProductWrapper<java.lang.String> wrapper)
          Returns an instance of the generic type E, using the ProductWrapper instance provided as argument.
 java.lang.Class<java.lang.String> getGeneratedType()
          Declares the type of the objects returned by the generate() method.
 void init(GeneratorContext context)
           
 boolean isParallelizable()
           
 boolean isThreadSafe()
           
 void reset()
           
 void setDataset(java.lang.String datasetName)
           
 void setLocale(java.util.Locale locale)
           
 java.lang.String toString()
           
 boolean wasInitialized()
           
 
Methods inherited from class org.databene.domain.person.EMailAddressBuilder
generate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EMailAddressGenerator

public EMailAddressGenerator()

EMailAddressGenerator

public EMailAddressGenerator(java.lang.String dataset)
Method Detail

setDataset

public void setDataset(java.lang.String datasetName)
Overrides:
setDataset in class EMailAddressBuilder

setLocale

public void setLocale(java.util.Locale locale)
Overrides:
setLocale in class EMailAddressBuilder

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>

init

public void init(GeneratorContext context)
          throws InvalidGeneratorSetupException
Specified by:
init in interface Generator<java.lang.String>
Overrides:
init in class EMailAddressBuilder
Throws:
InvalidGeneratorSetupException

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>

generate

public java.lang.String generate()
Specified by:
generate in interface NonNullGenerator<java.lang.String>

wasInitialized

public boolean wasInitialized()
Specified by:
wasInitialized in interface Generator<java.lang.String>

reset

public void reset()
Specified by:
reset in interface org.databene.commons.Resettable

close

public void close()
Description copied from interface: Generator
Closes the generator. After invocation the state is unavailable.

Specified by:
close in interface java.io.Closeable
Specified by:
close in interface Generator<java.lang.String>

isThreadSafe

public boolean isThreadSafe()
Specified by:
isThreadSafe in interface org.databene.commons.ThreadAware
Overrides:
isThreadSafe in class EMailAddressBuilder

isParallelizable

public boolean isParallelizable()
Specified by:
isParallelizable in interface org.databene.commons.ThreadAware
Overrides:
isParallelizable in class EMailAddressBuilder

toString

public java.lang.String toString()
Overrides:
toString in class EMailAddressBuilder


Copyright © 2013. All Rights Reserved.