Package org.ldaptive.beans
Interface AttributeValueMutator
-
- All Known Implementing Classes:
AbstractAttributeValueMutator,AbstractClassDescriptor.SimpleAttributeValueMutator,FieldAttributeValueMutator,MethodAttributeValueMutator,SpelAttributeValueMutator
public interface AttributeValueMutatorInterface for mutating an attribute value on an arbitrary object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<byte[]>getBinaryValues(Object object)Returns the binary values of the attribute.StringgetName()Returns the name of the attribute.Collection<String>getStringValues(Object object)Returns the string values of the attribute.booleanisBinary()Returns whether the attribute is binary.voidsetBinaryValues(Object object, Collection<byte[]> values)Sets the binary values of the attribute.voidsetStringValues(Object object, Collection<String> values)Sets the string values of the attribute.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the attribute.- Returns:
- attribute name
-
isBinary
boolean isBinary()
Returns whether the attribute is binary.- Returns:
- whether the attribute is binary
-
getStringValues
Collection<String> getStringValues(Object object)
Returns the string values of the attribute.- Parameters:
object- containing attribute values- Returns:
- attribute values
-
getBinaryValues
Collection<byte[]> getBinaryValues(Object object)
Returns the binary values of the attribute.- Parameters:
object- containing attribute values- Returns:
- attribute values
-
setStringValues
void setStringValues(Object object, Collection<String> values)
Sets the string values of the attribute.- Parameters:
object- to set values onvalues- to set
-
setBinaryValues
void setBinaryValues(Object object, Collection<byte[]> values)
Sets the binary values of the attribute.- Parameters:
object- to set values onvalues- to set
-
-