Class BooleanAttribute

  • All Implemented Interfaces:
    Attribute<Boolean>

    public class BooleanAttribute
    extends AttributeImpl<Boolean>

    class for providing Boolean value attributes. Takes care of type conversion and the interaction with the underlying Xml model model.

    Author:
    Daniel Meyer
    • Constructor Detail

      • BooleanAttribute

        public BooleanAttribute​(ModelElementType owningElementType)
    • Method Detail

      • convertXmlValueToModelValue

        protected Boolean convertXmlValueToModelValue​(String rawValue)
        Description copied from class: AttributeImpl
        to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the model
        Specified by:
        convertXmlValueToModelValue in class AttributeImpl<Boolean>
        Returns:
        the converted value
      • convertModelValueToXmlValue

        protected String convertModelValueToXmlValue​(Boolean modelValue)
        Description copied from class: AttributeImpl
        to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the model
        Specified by:
        convertModelValueToXmlValue in class AttributeImpl<Boolean>
        Returns:
        the converted value