Package org.ldaptive.beans.reflect
Class MethodAttributeValueMutator
- java.lang.Object
- 
- org.ldaptive.beans.reflect.AbstractAttributeValueMutator
- 
- org.ldaptive.beans.reflect.MethodAttributeValueMutator
 
 
- 
- All Implemented Interfaces:
- AttributeValueMutator
 
 public class MethodAttributeValueMutator extends AbstractAttributeValueMutator Attribute mutator associated with theMethodof an object.
- 
- 
Field SummaryFields Modifier and Type Field Description private MethodgetterMethodMethod to get data from.private MethodsetterMethodMethod to set data on.- 
Fields inherited from class org.ldaptive.beans.reflect.AbstractAttributeValueMutatorlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description MethodAttributeValueMutator(String name, boolean binary, ReflectionTranscoder transcoder, Method getter, Method setter)Creates a new method attribute value mutator.MethodAttributeValueMutator(ReflectionTranscoder transcoder, Method getter, Method setter)Creates a new method attribute value mutator.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method 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.voidsetBinaryValues(Object object, Collection<byte[]> values)Sets the binary values of the attribute.voidsetStringValues(Object object, Collection<String> values)Sets the string values of the attribute.StringtoString()- 
Methods inherited from class org.ldaptive.beans.reflect.AbstractAttributeValueMutatorgetName, getReflectionTranscoder, isBinary
 
- 
 
- 
- 
- 
Constructor Detail- 
MethodAttributeValueMutatorpublic MethodAttributeValueMutator(ReflectionTranscoder transcoder, Method getter, Method setter) Creates a new method attribute value mutator.- Parameters:
- transcoder- for mutating the methods
- getter- method to read data
- setter- method to write data
 
 - 
MethodAttributeValueMutatorpublic MethodAttributeValueMutator(String name, boolean binary, ReflectionTranscoder transcoder, Method getter, Method setter) Creates a new method attribute value mutator.- Parameters:
- name- of the attribute
- binary- whether the attribute is binary
- transcoder- to mutate the methods
- getter- method to read data
- setter- method to write data
 
 
- 
 - 
Method Detail- 
getStringValuespublic Collection<String> getStringValues(Object object) Description copied from interface:AttributeValueMutatorReturns the string values of the attribute.- Parameters:
- object- containing attribute values
- Returns:
- attribute values
 
 - 
getBinaryValuespublic Collection<byte[]> getBinaryValues(Object object) Description copied from interface:AttributeValueMutatorReturns the binary values of the attribute.- Parameters:
- object- containing attribute values
- Returns:
- attribute values
 
 - 
setStringValuespublic void setStringValues(Object object, Collection<String> values) Description copied from interface:AttributeValueMutatorSets the string values of the attribute.- Parameters:
- object- to set values on
- values- to set
 
 - 
setBinaryValuespublic void setBinaryValues(Object object, Collection<byte[]> values) Description copied from interface:AttributeValueMutatorSets the binary values of the attribute.- Parameters:
- object- to set values on
- values- to set
 
 
- 
 
-