org.ldaptive.beans.reflect
Class AbstractAttributeValueMutator

java.lang.Object
  extended by org.ldaptive.beans.reflect.AbstractAttributeValueMutator
All Implemented Interfaces:
AttributeValueMutator
Direct Known Subclasses:
FieldAttributeValueMutator, MethodAttributeValueMutator

public abstract class AbstractAttributeValueMutator
extends Object
implements AttributeValueMutator

Base implementation of a AttributeValueMutator. Uses a ReflectionTranscoder for mutating values.

Version:
$Revision: 2887 $ $Date: 2014-02-26 12:23:53 -0500 (Wed, 26 Feb 2014) $
Author:
Middleware Services

Field Summary
protected  org.slf4j.Logger logger
          Logger for this class.
 
Constructor Summary
AbstractAttributeValueMutator(String name, boolean binary, org.ldaptive.SortBehavior sortBehavior, ReflectionTranscoder transcoder)
          Creates a new abstract attribute value mutator.
 
Method Summary
 String getName()
          Returns the name of the attribute.
protected  ReflectionTranscoder getReflectionTranscoder()
          Returns the reflection transcoder.
 org.ldaptive.SortBehavior getSortBehavior()
          Returns the sort behavior of the attribute.
 boolean isBinary()
          Returns whether the attribute is binary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ldaptive.beans.AttributeValueMutator
getBinaryValues, getStringValues, setBinaryValues, setStringValues
 

Field Detail

logger

protected final org.slf4j.Logger logger
Logger for this class.

Constructor Detail

AbstractAttributeValueMutator

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

Parameters:
name - of the attribute
binary - whether this attribute is binary
sortBehavior - how to sort this attribute
transcoder - for mutating the attribute
Method Detail

getName

public String getName()
Returns the name of the attribute.

Specified by:
getName in interface AttributeValueMutator
Returns:
attribute name

isBinary

public boolean isBinary()
Returns whether the attribute is binary.

Specified by:
isBinary in interface AttributeValueMutator
Returns:
whether the attribute is binary

getSortBehavior

public org.ldaptive.SortBehavior getSortBehavior()
Returns the sort behavior of the attribute.

Specified by:
getSortBehavior in interface AttributeValueMutator
Returns:
sort behavior of the attribute

getReflectionTranscoder

protected ReflectionTranscoder getReflectionTranscoder()
Returns the reflection transcoder.

Returns:
reflection transcoder


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