org.ldaptive.beans.reflect
Class MethodAttributeValueMutator

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

public class MethodAttributeValueMutator
extends AbstractAttributeValueMutator

Attribute mutator associated with the Method 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
MethodAttributeValueMutator(ReflectionTranscoder transcoder, Method getter, Method setter)
          Creates a new method attribute value mutator.
MethodAttributeValueMutator(String name, boolean binary, org.ldaptive.SortBehavior sortBehavior, ReflectionTranscoder transcoder, Method getter, Method setter)
          Creates a new method 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

MethodAttributeValueMutator

public 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

MethodAttributeValueMutator

public MethodAttributeValueMutator(String name,
                                   boolean binary,
                                   org.ldaptive.SortBehavior sortBehavior,
                                   ReflectionTranscoder transcoder,
                                   Method getter,
                                   Method setter)
Creates a new method attribute value mutator.

Parameters:
name - of the attribute
binary - whether the attribute is binary
sortBehavior - sort behavior of the attribute
transcoder - to mutate the methods
getter - method to read data
setter - method to write data
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-2014 Virginia Tech. All Rights Reserved.