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 Object implements AttributeValueMutator
Stores anAttribute
configuration in anLdapAttribute
object. Setter methods are no-ops.
-
-
Field Summary
Fields Modifier and Type Field Description private LdapAttribute
la
Ldap attribute to operate on.
-
Constructor Summary
Constructors Constructor Description SimpleAttributeValueMutator(String name, String[] values, boolean binary)
Creates a new simple attribute value mutator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<byte[]>
getBinaryValues(Object object)
Returns the binary values of the attribute.String
getName()
Returns the name of the attribute.Collection<String>
getStringValues(Object object)
Returns the string values of the attribute.boolean
isBinary()
Returns whether the attribute is binary.void
setBinaryValues(Object object, Collection<byte[]> values)
Sets the binary values of the attribute.void
setStringValues(Object object, Collection<String> values)
Sets the string values of the attribute.String
toString()
-
-
-
Field Detail
-
la
private final LdapAttribute la
Ldap attribute to operate on.
-
-
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
-
getStringValues
public Collection<String> getStringValues(Object object)
Description copied from interface:AttributeValueMutator
Returns the string values of the attribute.- Specified by:
getStringValues
in interfaceAttributeValueMutator
- Parameters:
object
- containing attribute values- Returns:
- attribute values
-
getBinaryValues
public Collection<byte[]> getBinaryValues(Object object)
Description copied from interface:AttributeValueMutator
Returns the binary values of the attribute.- Specified by:
getBinaryValues
in interfaceAttributeValueMutator
- Parameters:
object
- containing attribute values- Returns:
- attribute values
-
setStringValues
public void setStringValues(Object object, Collection<String> values)
Description copied from interface:AttributeValueMutator
Sets the string values of the attribute.- Specified by:
setStringValues
in interfaceAttributeValueMutator
- Parameters:
object
- to set values onvalues
- to set
-
setBinaryValues
public void setBinaryValues(Object object, Collection<byte[]> values)
Description copied from interface:AttributeValueMutator
Sets the binary values of the attribute.- Specified by:
setBinaryValues
in interfaceAttributeValueMutator
- Parameters:
object
- to set values onvalues
- to set
-
-