protected class AbstractClassDescriptor.SimpleAttributeValueMutator extends 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(String name,
                           String[] values,
                           boolean binary,
                           SortBehavior behavior)
Creates a new simple attribute value mutator. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Collection<byte[]> | 
getBinaryValues(Object object)
Returns the binary values of the attribute. 
 | 
String | 
getName()
Returns the name of the attribute. 
 | 
SortBehavior | 
getSortBehavior()
Returns the sort behavior 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()  | 
private final LdapAttribute la
public SimpleAttributeValueMutator(String name, String[] values, boolean binary, SortBehavior behavior)
name - of the attributevalues - of the attributebinary - whether values contains base64 encoded databehavior - sort behavior of the attributepublic String getName()
AttributeValueMutatorgetName in interface AttributeValueMutatorpublic boolean isBinary()
AttributeValueMutatorisBinary in interface AttributeValueMutatorpublic SortBehavior getSortBehavior()
AttributeValueMutatorgetSortBehavior in interface AttributeValueMutatorpublic Collection<String> getStringValues(Object object)
AttributeValueMutatorgetStringValues in interface AttributeValueMutatorobject - containing attribute valuespublic Collection<byte[]> getBinaryValues(Object object)
AttributeValueMutatorgetBinaryValues in interface AttributeValueMutatorobject - containing attribute valuespublic void setStringValues(Object object, Collection<String> values)
AttributeValueMutatorsetStringValues in interface AttributeValueMutatorobject - to set values onvalues - to setpublic void setBinaryValues(Object object, Collection<byte[]> values)
AttributeValueMutatorsetBinaryValues in interface AttributeValueMutatorobject - to set values onvalues - to setCopyright © 2003-2019 Virginia Tech. All Rights Reserved.