net.sf.adatagenerator.api
Interface ValueModifier<V>

Type Parameters:
V - the value type
All Superinterfaces:
Comparable<NamedInstance>, NamedInstance
All Known Implementing Classes:
AbstractValueModifier, AbstractValueModifier.StringModifier, CharInserter, FebrlDataDrivenModifier, GivenNameMisspeller, NoChangeValueModifier, NullValueModifier, OCRTransformer, PhoneticTransformer, Transpositioner

public interface ValueModifier<V>
extends NamedInstance

Declares a capability for modifying a property value of a Java Bean.


Method Summary
 Class<V> getValueType()
          An optional hint to clients that use reflection for the type of value modified by this instance.
 V modifyValue(V value)
          Modifies and returns the specified value
 
Methods inherited from interface net.sf.adatagenerator.api.NamedInstance
compareContexts, compareTo, getContext, getContextComparator, getName, getNamedInstanceComparator
 

Method Detail

getValueType

Class<V> getValueType()
An optional hint to clients that use reflection for the type of value modified by this instance.

Returns:
may be null

modifyValue

V modifyValue(V value)
              throws ModificationException
Modifies and returns the specified value

Throws:
ModificationException


Copyright © 2011-2012. All Rights Reserved.