net.sf.adatagenerator.febrl.modifiers
Class FebrlDataDrivenModifier<T>
java.lang.Object
net.sf.adatagenerator.core.AbstractValueModifier<T>
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FebrlDataDrivenModifier
public FebrlDataDrivenModifier(Class<T> type)
throws IOException
- Throws:
IOException
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.