net.sf.adatagenerator.febrl.modifiers
Class FebrlDataDrivenModifier<T>

java.lang.Object
  extended by net.sf.adatagenerator.core.AbstractValueModifier<T>
      extended by net.sf.adatagenerator.febrl.modifiers.FebrlDataDrivenModifier<T>
All Implemented Interfaces:
Comparable<NamedInstance>, NamedInstance, ValueModifier<T>
Direct Known Subclasses:
GivenNameMisspeller, OCRTransformer, PhoneticTransformer

public abstract class FebrlDataDrivenModifier<T>
extends AbstractValueModifier<T>


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.adatagenerator.core.AbstractValueModifier
AbstractValueModifier.StringModifier
 
Field Summary
 
Fields inherited from class net.sf.adatagenerator.core.AbstractValueModifier
logger
 
Constructor Summary
FebrlDataDrivenModifier(Class<T> type)
           
 
Method Summary
protected  Random getFlatDistribution()
           
protected abstract  void loadData()
           
abstract  T modifyValue(T fieldValue)
          Modifies and returns the specified value
 
Methods inherited from class net.sf.adatagenerator.core.AbstractValueModifier
compareContexts, compareTo, getContext, getContextComparator, getName, getNameDelegate, getNamedInstanceComparator, getValueType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FebrlDataDrivenModifier

public FebrlDataDrivenModifier(Class<T> type)
                        throws IOException
Throws:
IOException
Method Detail

getFlatDistribution

protected Random getFlatDistribution()

loadData

protected abstract void loadData()
                          throws IOException
Throws:
IOException

modifyValue

public abstract T modifyValue(T fieldValue)
                       throws ModificationException
Description copied from interface: ValueModifier
Modifies and returns the specified value

Throws:
ModificationException


Copyright © 2011-2012. All Rights Reserved.