net.sf.adatagenerator.api
Interface PairModifier<T,P extends ModifiablePair<T>>

Type Parameters:
T - the bean type
P - the pair type
All Superinterfaces:
Comparable<NamedInstance>, NamedInstance
All Known Implementing Classes:
CompositePairModifier, DefaultPairModifier, RandomPairModifier

public interface PairModifier<T,P extends ModifiablePair<T>>
extends NamedInstance

Declares a capability for modifying modifies a pair of Java Beans.

Author:
rphall

Nested Class Summary
static class PairModifier.ModificationResult
          An enumeration of how a processor may change a pair by processing it.
 
Method Summary
 P modifyPair(P target)
          Modifies the target and updates its current status.
 
Methods inherited from interface net.sf.adatagenerator.api.NamedInstance
compareContexts, compareTo, getContext, getContextComparator, getName, getNamedInstanceComparator
 

Method Detail

modifyPair

P modifyPair(P target)
                                       throws ModificationException
Modifies the target and updates its current status.

Parameters:
target - 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.