Interface AttributeValueMutator

All Known Implementing Classes:
AbstractAttributeValueMutator, AbstractClassDescriptor.SimpleAttributeValueMutator, FieldAttributeValueMutator, MethodAttributeValueMutator, SpelAttributeValueMutator

public interface AttributeValueMutator
Interface for mutating an attribute value on an arbitrary object.
  • Method Details

    • 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 on
      values - to set
    • setBinaryValues

      void setBinaryValues(Object object, Collection<byte[]> values)
      Sets the binary values of the attribute.
      Parameters:
      object - to set values on
      values - to set