public class MethodAttributeValueMutator extends AbstractAttributeValueMutator
Method of an object.| Modifier and Type | Field and Description | 
|---|---|
private Method | 
getterMethod
Method to get data from. 
 | 
private Method | 
setterMethod
Method to set data on. 
 | 
logger| Constructor and Description | 
|---|
MethodAttributeValueMutator(ReflectionTranscoder transcoder,
                           Method getter,
                           Method setter)
Creates a new method attribute value mutator. 
 | 
MethodAttributeValueMutator(String name,
                           boolean binary,
                           SortBehavior sortBehavior,
                           ReflectionTranscoder transcoder,
                           Method getter,
                           Method setter)
Creates a new method attribute value mutator. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Collection<byte[]> | 
getBinaryValues(Object object)
Returns the binary values of the attribute. 
 | 
Collection<String> | 
getStringValues(Object object)
Returns the string values of the attribute. 
 | 
void | 
setBinaryValues(Object object,
               Collection<byte[]> values)
Sets the binary values of the attribute. 
 | 
void | 
setStringValues(Object object,
               Collection<String> values)
Sets the string values of the attribute. 
 | 
String | 
toString()  | 
getName, getReflectionTranscoder, getSortBehavior, isBinaryprivate final Method getterMethod
private final Method setterMethod
public MethodAttributeValueMutator(ReflectionTranscoder transcoder, Method getter, Method setter)
transcoder - for mutating the methodsgetter - method to read datasetter - method to write datapublic MethodAttributeValueMutator(String name, boolean binary, SortBehavior sortBehavior, ReflectionTranscoder transcoder, Method getter, Method setter)
name - of the attributebinary - whether the attribute is binarysortBehavior - sort behavior of the attributetranscoder - to mutate the methodsgetter - method to read datasetter - method to write datapublic Collection<String> getStringValues(Object object)
AttributeValueMutatorobject - containing attribute valuespublic Collection<byte[]> getBinaryValues(Object object)
AttributeValueMutatorobject - containing attribute valuespublic void setStringValues(Object object, Collection<String> values)
AttributeValueMutatorobject - to set values onvalues - to setpublic void setBinaryValues(Object object, Collection<byte[]> values)
AttributeValueMutatorobject - to set values onvalues - to setCopyright © 2003-2019 Virginia Tech. All Rights Reserved.