Class MultiAttributeProvider.ManyValueAttributeValue

    • Constructor Detail

      • ManyValueAttributeValue

        ManyValueAttributeValue()
    • Method Detail

      • getTopType

        @Pure
        public AttributeType getTopType()
        Replies the type type associated to this attribute value.
        Returns:
        the top type associated to this attribute value.
      • setTopType

        public void setTopType​(AttributeType type)
        Set the top type associated to this attribute value.
        Parameters:
        type - is the top type associated to this attribute value.
      • setInternalValue

        public final void setInternalValue​(Object value)
        Description copied from class: AttributeValueImpl
        Set this value with the content of the specified one.

        The type of the attribute will be NOT detected from the type of the object. It means that it is not changed by this function. The given value must be compatible with internal representation of the attribute implementation.

        Overrides:
        setInternalValue in class AttributeValueImpl
        Parameters:
        value - is the raw value to put inside this attribute value.
      • setInternalValue

        public final void setInternalValue​(Object value,
                                           AttributeType type)
        Description copied from class: AttributeValueImpl
        Set this value with the content of the specified one.

        The type of the attribute will be NOT detected from the type of the object. It means that it will be equal to the given type, even if the given value is incompatible. The given value must be compatible with internal representation of the attribute implementation.

        Overrides:
        setInternalValue in class AttributeValueImpl
        Parameters:
        value - is the raw value to put inside this attribute value.
        type - is the type of the value.
      • hasMultipleValues

        @Pure
        public boolean hasMultipleValues()
        Replies if this attribute has multiple values.
        Returns:
        true if this attribute has multiple values, otherwise false.
      • setMultipleValues

        public void setMultipleValues​(boolean v)
        Set if this attribute has multiple values.
        Parameters:
        v - is true if this attribute has multiple values, otherwise false.