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()
AttributeValueMutator
getName
in interface AttributeValueMutator
public boolean isBinary()
AttributeValueMutator
isBinary
in interface AttributeValueMutator
public SortBehavior getSortBehavior()
AttributeValueMutator
getSortBehavior
in interface AttributeValueMutator
public Collection<String> getStringValues(Object object)
AttributeValueMutator
getStringValues
in interface AttributeValueMutator
object
- containing attribute valuespublic Collection<byte[]> getBinaryValues(Object object)
AttributeValueMutator
getBinaryValues
in interface AttributeValueMutator
object
- containing attribute valuespublic void setStringValues(Object object, Collection<String> values)
AttributeValueMutator
setStringValues
in interface AttributeValueMutator
object
- to set values onvalues
- to setpublic void setBinaryValues(Object object, Collection<byte[]> values)
AttributeValueMutator
setBinaryValues
in interface AttributeValueMutator
object
- to set values onvalues
- to setCopyright © 2003-2019 Virginia Tech. All Rights Reserved.