Package org.ldaptive.beans.reflect
Class AbstractAttributeValueMutator
- java.lang.Object
-
- org.ldaptive.beans.reflect.AbstractAttributeValueMutator
-
- All Implemented Interfaces:
AttributeValueMutator
- Direct Known Subclasses:
FieldAttributeValueMutator,MethodAttributeValueMutator
public abstract class AbstractAttributeValueMutator extends java.lang.Object implements AttributeValueMutator
Base implementation of aAttributeValueMutator. Uses aReflectionTranscoderfor mutating values.- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.LoggerloggerLogger for this class.
-
Constructor Summary
Constructors Constructor Description AbstractAttributeValueMutator(java.lang.String name, boolean binary, ReflectionTranscoder transcoder)Creates a new abstract attribute value mutator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of the attribute.protected ReflectionTranscodergetReflectionTranscoder()Returns the reflection transcoder.booleanisBinary()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
-
-
-
-
Constructor Detail
-
AbstractAttributeValueMutator
public AbstractAttributeValueMutator(java.lang.String name, boolean binary, ReflectionTranscoder transcoder)Creates a new abstract attribute value mutator.- Parameters:
name- of the attributebinary- whether this attribute is binarytranscoder- for mutating the attribute
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:AttributeValueMutatorReturns the name of the attribute.- Specified by:
getNamein interfaceAttributeValueMutator- Returns:
- attribute name
-
isBinary
public boolean isBinary()
Description copied from interface:AttributeValueMutatorReturns whether the attribute is binary.- Specified by:
isBinaryin interfaceAttributeValueMutator- Returns:
- whether the attribute is binary
-
getReflectionTranscoder
protected ReflectionTranscoder getReflectionTranscoder()
Returns the reflection transcoder.- Returns:
- reflection transcoder
-
-