Class FieldAttributeValueMutator

    • Constructor Detail

      • FieldAttributeValueMutator

        public FieldAttributeValueMutator​(ReflectionTranscoder transcoder,
                                          java.lang.reflect.Field field)
        Creates a new field attribute value mutator.
        Parameters:
        transcoder - for mutating the field
        field - to mutate
      • FieldAttributeValueMutator

        public FieldAttributeValueMutator​(java.lang.String name,
                                          boolean binary,
                                          ReflectionTranscoder transcoder,
                                          java.lang.reflect.Field field)
        Creates a new field attribute value mutator.
        Parameters:
        name - of the attribute
        binary - whether the attribute is binary
        transcoder - to mutate the field
        field - to mutate
    • Method Detail

      • getStringValues

        public java.util.Collection<java.lang.String> getStringValues​(java.lang.Object object)
        Description copied from interface: AttributeValueMutator
        Returns the string values of the attribute.
        Parameters:
        object - containing attribute values
        Returns:
        attribute values
      • getBinaryValues

        public java.util.Collection<byte[]> getBinaryValues​(java.lang.Object object)
        Description copied from interface: AttributeValueMutator
        Returns the binary values of the attribute.
        Parameters:
        object - containing attribute values
        Returns:
        attribute values
      • setStringValues

        public void setStringValues​(java.lang.Object object,
                                    java.util.Collection<java.lang.String> values)
        Description copied from interface: AttributeValueMutator
        Sets the string values of the attribute.
        Parameters:
        object - to set values on
        values - to set
      • setBinaryValues

        public void setBinaryValues​(java.lang.Object object,
                                    java.util.Collection<byte[]> values)
        Description copied from interface: AttributeValueMutator
        Sets the binary values of the attribute.
        Parameters:
        object - to set values on
        values - to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object