protected class AbstractClassDescriptor.SimpleAttributeValueMutator extends java.lang.Object implements AttributeValueMutator
Attribute configuration in an LdapAttribute object. Setter methods are no-ops.| Modifier and Type | Field and Description |
|---|---|
private LdapAttribute |
la
Ldap attribute to operate on.
|
| Constructor and Description |
|---|
SimpleAttributeValueMutator(java.lang.String name,
java.lang.String[] values,
boolean binary,
SortBehavior behavior)
Creates a new simple attribute value mutator.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<byte[]> |
getBinaryValues(java.lang.Object object)
Returns the binary values of the attribute.
|
java.lang.String |
getName()
Returns the name of the attribute.
|
SortBehavior |
getSortBehavior()
Returns the sort behavior of the attribute.
|
java.util.Collection<java.lang.String> |
getStringValues(java.lang.Object object)
Returns the string values of the attribute.
|
boolean |
isBinary()
Returns whether the attribute is binary.
|
void |
setBinaryValues(java.lang.Object object,
java.util.Collection<byte[]> values)
Sets the binary values of the attribute.
|
void |
setStringValues(java.lang.Object object,
java.util.Collection<java.lang.String> values)
Sets the string values of the attribute.
|
java.lang.String |
toString() |
private final LdapAttribute la
public SimpleAttributeValueMutator(java.lang.String name,
java.lang.String[] values,
boolean binary,
SortBehavior behavior)
name - of the attributevalues - of the attributebinary - whether values contains base64 encoded databehavior - sort behavior of the attributepublic java.lang.String getName()
AttributeValueMutatorgetName in interface AttributeValueMutatorpublic boolean isBinary()
AttributeValueMutatorisBinary in interface AttributeValueMutatorpublic SortBehavior getSortBehavior()
AttributeValueMutatorgetSortBehavior in interface AttributeValueMutatorpublic java.util.Collection<java.lang.String> getStringValues(java.lang.Object object)
AttributeValueMutatorgetStringValues in interface AttributeValueMutatorobject - containing attribute valuespublic java.util.Collection<byte[]> getBinaryValues(java.lang.Object object)
AttributeValueMutatorgetBinaryValues in interface AttributeValueMutatorobject - containing attribute valuespublic void setStringValues(java.lang.Object object,
java.util.Collection<java.lang.String> values)
AttributeValueMutatorsetStringValues in interface AttributeValueMutatorobject - to set values onvalues - to setpublic void setBinaryValues(java.lang.Object object,
java.util.Collection<byte[]> values)
AttributeValueMutatorsetBinaryValues in interface AttributeValueMutatorobject - to set values onvalues - to setpublic java.lang.String toString()
toString in class java.lang.Object