Class AbstractClassDescriptor.SimpleAttributeValueMutator

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleAttributeValueMutator​(java.lang.String name, java.lang.String[] values, boolean binary)
      Creates a new simple attribute value mutator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<byte[]> getBinaryValues​(java.lang.Object object)
      Returns the binary values of the attribute.
      java.lang.String getName()
      Returns the name of the attribute.
      java.util.Collection<java.lang.String> getStringValues​(java.lang.Object object)
      Returns the string values of the attribute.
      boolean isBinary()
      Returns whether the attribute is binary.
      void setBinaryValues​(java.lang.Object object, java.util.Collection<byte[]> values)
      Sets the binary values of the attribute.
      void setStringValues​(java.lang.Object object, java.util.Collection<java.lang.String> values)
      Sets the string values of the attribute.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleAttributeValueMutator

        public SimpleAttributeValueMutator​(java.lang.String name,
                                           java.lang.String[] values,
                                           boolean binary)
        Creates a new simple attribute value mutator.
        Parameters:
        name - of the attribute
        values - of the attribute
        binary - whether values contains base64 encoded data
    • 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.
        Specified by:
        getStringValues in interface AttributeValueMutator
        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.
        Specified by:
        getBinaryValues in interface AttributeValueMutator
        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.
        Specified by:
        setStringValues in interface AttributeValueMutator
        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.
        Specified by:
        setBinaryValues in interface AttributeValueMutator
        Parameters:
        object - to set values on
        values - to set
      • toString

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