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.- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<byte[]>getBinaryValues(java.lang.Object object)Returns the binary values of the attribute.java.lang.StringgetName()Returns the name of the attribute.java.util.Collection<java.lang.String>getStringValues(java.lang.Object object)Returns the string values of the attribute.booleanisBinary()Returns whether the attribute is binary.voidsetBinaryValues(java.lang.Object object, java.util.Collection<byte[]> values)Sets the binary values of the attribute.voidsetStringValues(java.lang.Object object, java.util.Collection<java.lang.String> values)Sets the string values of the attribute.
-
-
-
Method Detail
-
getName
java.lang.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
java.util.Collection<java.lang.String> getStringValues(java.lang.Object object)
Returns the string values of the attribute.- Parameters:
object- containing attribute values- Returns:
- attribute values
-
getBinaryValues
java.util.Collection<byte[]> getBinaryValues(java.lang.Object object)
Returns the binary values of the attribute.- Parameters:
object- containing attribute values- Returns:
- attribute values
-
setStringValues
void setStringValues(java.lang.Object object, java.util.Collection<java.lang.String> values)Sets the string values of the attribute.- Parameters:
object- to set values onvalues- to set
-
setBinaryValues
void setBinaryValues(java.lang.Object object, java.util.Collection<byte[]> values)Sets the binary values of the attribute.- Parameters:
object- to set values onvalues- to set
-
-