Package org.ldaptive.beans
Class AbstractClassDescriptor.SimpleAttributeValueMutator
- java.lang.Object
-
- org.ldaptive.beans.AbstractClassDescriptor.SimpleAttributeValueMutator
-
- All Implemented Interfaces:
AttributeValueMutator
- Enclosing class:
- AbstractClassDescriptor
protected static class AbstractClassDescriptor.SimpleAttributeValueMutator extends java.lang.Object implements AttributeValueMutator
Stores anAttributeconfiguration in anLdapAttributeobject. Setter methods are no-ops.
-
-
Constructor Summary
Constructors Constructor Description SimpleAttributeValueMutator(java.lang.String name, java.lang.String[] values, boolean binary)Creates a new simple attribute value mutator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<byte[]>getBinaryValues(java.lang.Object object)Returns the binary values of the attribute.java.lang.StringgetName()Returns the name of the attribute.java.util.Collection<java.lang.String>getStringValues(java.lang.Object object)Returns the string values of the attribute.booleanisBinary()Returns whether the attribute is binary.voidsetBinaryValues(java.lang.Object object, java.util.Collection<byte[]> values)Sets the binary values of the attribute.voidsetStringValues(java.lang.Object object, java.util.Collection<java.lang.String> values)Sets the string values of the attribute.java.lang.StringtoString()
-
-
-
Constructor Detail
-
SimpleAttributeValueMutator
public SimpleAttributeValueMutator(java.lang.String name, java.lang.String[] values, boolean binary)Creates a new simple attribute value mutator.- Parameters:
name- of the attributevalues- of the attributebinary- whether values contains base64 encoded data
-
-
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
-
getStringValues
public java.util.Collection<java.lang.String> getStringValues(java.lang.Object object)
Description copied from interface:AttributeValueMutatorReturns the string values of the attribute.- Specified by:
getStringValuesin interfaceAttributeValueMutator- Parameters:
object- containing attribute values- Returns:
- attribute values
-
getBinaryValues
public java.util.Collection<byte[]> getBinaryValues(java.lang.Object object)
Description copied from interface:AttributeValueMutatorReturns the binary values of the attribute.- Specified by:
getBinaryValuesin interfaceAttributeValueMutator- Parameters:
object- containing attribute values- Returns:
- attribute values
-
setStringValues
public void setStringValues(java.lang.Object object, java.util.Collection<java.lang.String> values)Description copied from interface:AttributeValueMutatorSets the string values of the attribute.- Specified by:
setStringValuesin interfaceAttributeValueMutator- Parameters:
object- to set values onvalues- to set
-
setBinaryValues
public void setBinaryValues(java.lang.Object object, java.util.Collection<byte[]> values)Description copied from interface:AttributeValueMutatorSets the binary values of the attribute.- Specified by:
setBinaryValuesin interfaceAttributeValueMutator- Parameters:
object- to set values onvalues- to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-