Class BooleanAttribute

  • All Implemented Interfaces:
    Attribute<java.lang.Boolean>

    public class BooleanAttribute
    extends AttributeImpl<java.lang.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 java.lang.Boolean convertXmlValueToModelValue​(java.lang.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<java.lang.Boolean>
        Returns:
        the converted value
      • convertModelValueToXmlValue

        protected java.lang.String convertModelValueToXmlValue​(java.lang.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<java.lang.Boolean>
        Returns:
        the converted value