Package org.ldaptive.beans.reflect
Class FieldAttributeValueMutator
- java.lang.Object
-
- org.ldaptive.beans.reflect.AbstractAttributeValueMutator
-
- org.ldaptive.beans.reflect.FieldAttributeValueMutator
-
- All Implemented Interfaces:
AttributeValueMutator
public class FieldAttributeValueMutator extends AbstractAttributeValueMutator
Attribute mutator associated with theFieldof an object.- Author:
- Middleware Services
-
-
Field Summary
-
Fields inherited from class org.ldaptive.beans.reflect.AbstractAttributeValueMutator
logger
-
-
Constructor Summary
Constructors Constructor Description FieldAttributeValueMutator(java.lang.String name, boolean binary, ReflectionTranscoder transcoder, java.lang.reflect.Field field)Creates a new field attribute value mutator.FieldAttributeValueMutator(ReflectionTranscoder transcoder, java.lang.reflect.Field field)Creates a new field attribute value mutator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<byte[]>getBinaryValues(java.lang.Object object)Returns the binary values of the attribute.java.util.Collection<java.lang.String>getStringValues(java.lang.Object object)Returns the string values of the attribute.voidsetBinaryValues(java.lang.Object object, java.util.Collection<byte[]> values)Sets the binary values of the attribute.voidsetStringValues(java.lang.Object object, java.util.Collection<java.lang.String> values)Sets the string values of the attribute.java.lang.StringtoString()-
Methods inherited from class org.ldaptive.beans.reflect.AbstractAttributeValueMutator
getName, getReflectionTranscoder, isBinary
-
-
-
-
Constructor Detail
-
FieldAttributeValueMutator
public FieldAttributeValueMutator(ReflectionTranscoder transcoder, java.lang.reflect.Field field)
Creates a new field attribute value mutator.- Parameters:
transcoder- for mutating the fieldfield- to mutate
-
FieldAttributeValueMutator
public FieldAttributeValueMutator(java.lang.String name, boolean binary, ReflectionTranscoder transcoder, java.lang.reflect.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 Detail
-
getStringValues
public java.util.Collection<java.lang.String> getStringValues(java.lang.Object object)
Description copied from interface:AttributeValueMutatorReturns the string values of the attribute.- Parameters:
object- containing attribute values- Returns:
- attribute values
-
getBinaryValues
public java.util.Collection<byte[]> getBinaryValues(java.lang.Object object)
Description copied from interface:AttributeValueMutatorReturns the binary values of the attribute.- Parameters:
object- containing attribute values- Returns:
- attribute values
-
setStringValues
public void setStringValues(java.lang.Object object, java.util.Collection<java.lang.String> values)Description copied from interface:AttributeValueMutatorSets the string values of the attribute.- Parameters:
object- to set values onvalues- to set
-
setBinaryValues
public void setBinaryValues(java.lang.Object object, java.util.Collection<byte[]> values)Description copied from interface:AttributeValueMutatorSets the binary values of the attribute.- Parameters:
object- to set values onvalues- to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-