Package org.ldaptive.beans.reflect
Class FieldAttributeValueMutator
java.lang.Object
org.ldaptive.beans.reflect.AbstractAttributeValueMutator
org.ldaptive.beans.reflect.FieldAttributeValueMutator
- All Implemented Interfaces:
AttributeValueMutator
Attribute mutator associated with the
Field of an object.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FieldField to operate on.private final booleanWhether the field has a final modifier.Fields inherited from class org.ldaptive.beans.reflect.AbstractAttributeValueMutator
logger -
Constructor Summary
ConstructorsConstructorDescriptionFieldAttributeValueMutator(String name, boolean binary, ReflectionTranscoder transcoder, Field field) Creates a new field attribute value mutator.FieldAttributeValueMutator(ReflectionTranscoder transcoder, Field field) Creates a new field attribute value mutator. -
Method Summary
Modifier and TypeMethodDescriptionCollection<byte[]>getBinaryValues(Object object) Returns the binary values of the attribute.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.toString()Methods inherited from class org.ldaptive.beans.reflect.AbstractAttributeValueMutator
getName, getReflectionTranscoder, isBinary
-
Field Details
-
f
Field to operate on. -
isFinal
private final boolean isFinalWhether the field has a final modifier.
-
-
Constructor Details
-
FieldAttributeValueMutator
Creates a new field attribute value mutator.- Parameters:
transcoder- for mutating the fieldfield- to mutate
-
FieldAttributeValueMutator
public FieldAttributeValueMutator(String name, boolean binary, ReflectionTranscoder transcoder, Field field) Creates a new field attribute value mutator.- Parameters:
name- of the attributebinary- whether the attribute is binarytranscoder- to mutate the fieldfield- to mutate
-
-
Method Details
-
getStringValues
Description copied from interface:AttributeValueMutatorReturns the string values of the attribute.- Parameters:
object- containing attribute values- Returns:
- attribute values
-
getBinaryValues
Description copied from interface:AttributeValueMutatorReturns the binary values of the attribute.- Parameters:
object- containing attribute values- Returns:
- attribute values
-
setStringValues
Description copied from interface:AttributeValueMutatorSets the string values of the attribute.- Parameters:
object- to set values onvalues- to set
-
setBinaryValues
Description copied from interface:AttributeValueMutatorSets the binary values of the attribute.- Parameters:
object- to set values onvalues- to set
-
toString
-