Package org.ldaptive.beans.reflect
Class AbstractAttributeValueMutator
java.lang.Object
org.ldaptive.beans.reflect.AbstractAttributeValueMutator
- All Implemented Interfaces:
AttributeValueMutator
- Direct Known Subclasses:
FieldAttributeValueMutator
,MethodAttributeValueMutator
Base implementation of a
AttributeValueMutator
. Uses a ReflectionTranscoder
for mutating values.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
Whether this attribute is binary.private final String
Name of the attribute.protected final org.slf4j.Logger
Logger for this class.private final ReflectionTranscoder
Transcoder for modifying this attribute. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAttributeValueMutator
(String name, boolean binary, ReflectionTranscoder transcoder) Creates a new abstract attribute value mutator. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the attribute.protected ReflectionTranscoder
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 Details
-
logger
protected final org.slf4j.Logger loggerLogger for this class. -
attributeName
Name of the attribute. -
attributeBinary
private final boolean attributeBinaryWhether this attribute is binary. -
valueTranscoder
Transcoder for modifying this attribute.
-
-
Constructor Details
-
AbstractAttributeValueMutator
Creates a new abstract attribute value mutator.- Parameters:
name
- of the attributebinary
- whether this attribute is binarytranscoder
- for mutating the attribute
-
-
Method Details
-
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
Returns the reflection transcoder.- Returns:
- reflection transcoder
-