org.ldaptive.beans.reflect
Class FieldAttributeValueMutator

java.lang.Object
  extended by org.ldaptive.beans.reflect.AbstractAttributeValueMutator
      extended by org.ldaptive.beans.reflect.FieldAttributeValueMutator
All Implemented Interfaces:
AttributeValueMutator

public class FieldAttributeValueMutator
extends AbstractAttributeValueMutator

Attribute mutator associated with the Field of an object.

Version:
$Revision: 3013 $ $Date: 2014-07-02 11:26:52 -0400 (Wed, 02 Jul 2014) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class org.ldaptive.beans.reflect.AbstractAttributeValueMutator
logger
 
Constructor Summary
FieldAttributeValueMutator(ReflectionTranscoder transcoder, Field field)
          Creates a new field attribute value mutator.
FieldAttributeValueMutator(String name, boolean binary, org.ldaptive.SortBehavior sortBehavior, ReflectionTranscoder transcoder, Field field)
          Creates a new field attribute value mutator.
 
Method Summary
 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()
          
 
Methods inherited from class org.ldaptive.beans.reflect.AbstractAttributeValueMutator
getName, getReflectionTranscoder, getSortBehavior, isBinary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldAttributeValueMutator

public FieldAttributeValueMutator(ReflectionTranscoder transcoder,
                                  Field field)
Creates a new field attribute value mutator.

Parameters:
transcoder - for mutating the field
field - to mutate

FieldAttributeValueMutator

public FieldAttributeValueMutator(String name,
                                  boolean binary,
                                  org.ldaptive.SortBehavior sortBehavior,
                                  ReflectionTranscoder transcoder,
                                  Field field)
Creates a new field attribute value mutator.

Parameters:
name - of the attribute
binary - whether the attribute is binary
sortBehavior - sort behavior of the attribute
transcoder - to mutate the field
field - to mutate
Method Detail

getStringValues

public Collection<String> getStringValues(Object object)
Returns the string values of the attribute.

Parameters:
object - containing attribute values
Returns:
attribute values

getBinaryValues

public Collection<byte[]> getBinaryValues(Object object)
Returns the binary values of the attribute.

Parameters:
object - containing attribute values
Returns:
attribute values

setStringValues

public void setStringValues(Object object,
                            Collection<String> values)
Sets the string values of the attribute.

Parameters:
object - to set values on
values - to set

setBinaryValues

public void setBinaryValues(Object object,
                            Collection<byte[]> values)
Sets the binary values of the attribute.

Parameters:
object - to set values on
values - to set

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2016 Virginia Tech. All Rights Reserved.