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 Object implements AttributeValueMutator
Base implementation of aAttributeValueMutator
. Uses aReflectionTranscoder
for mutating values.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
attributeBinary
Whether this attribute is binary.private String
attributeName
Name of the attribute.protected Logger
logger
Logger for this class.private ReflectionTranscoder
valueTranscoder
Transcoder for modifying this attribute.
-
Constructor Summary
Constructors Constructor Description AbstractAttributeValueMutator(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 String
getName()
Returns the name of the attribute.protected ReflectionTranscoder
getReflectionTranscoder()
Returns the reflection transcoder.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 Logger logger
Logger for this class.
-
attributeName
private final String attributeName
Name of the attribute.
-
attributeBinary
private final boolean attributeBinary
Whether this attribute is binary.
-
valueTranscoder
private final ReflectionTranscoder valueTranscoder
Transcoder for modifying this attribute.
-
-
Constructor Detail
-
AbstractAttributeValueMutator
public AbstractAttributeValueMutator(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 String getName()
Description copied from interface:AttributeValueMutator
Returns the name of the attribute.- Specified by:
getName
in interfaceAttributeValueMutator
- Returns:
- attribute name
-
isBinary
public boolean isBinary()
Description copied from interface:AttributeValueMutator
Returns whether the attribute is binary.- Specified by:
isBinary
in interfaceAttributeValueMutator
- Returns:
- whether the attribute is binary
-
getReflectionTranscoder
protected ReflectionTranscoder getReflectionTranscoder()
Returns the reflection transcoder.- Returns:
- reflection transcoder
-
-