net.sf.adatagenerator.api
Interface BeanModifier<T>

Type Parameters:
T - the bean type
All Superinterfaces:
Comparable<NamedInstance>, NamedInstance
All Known Implementing Classes:
BeanFieldModifier, CompositeBeanFieldModifier, RandomBeanFieldModifier, StringFieldModifier

public interface BeanModifier<T>
extends NamedInstance

Declares a capability for modifying a Java Bean.

Author:
rphall

Method Summary
 T modifyBean(T bean)
          Modifies the specified bean.
 
Methods inherited from interface net.sf.adatagenerator.api.NamedInstance
compareContexts, compareTo, getContext, getContextComparator, getName, getNamedInstanceComparator
 

Method Detail

modifyBean

T modifyBean(T bean)
             throws ModificationException
Modifies the specified bean.

Parameters:
bean - the object to modify
Returns:
the modified target (or a modified copy of the target)
Throws:
ModificationException - if modification fails


Copyright © 2011-2012. All Rights Reserved.