Class StringAttribute

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

    public class StringAttribute
    extends AttributeImpl<java.lang.String>

    Base class for String attributes

    Author:
    Daniel Meyer
    • Constructor Detail

      • StringAttribute

        public StringAttribute​(ModelElementType owningElementType)
    • Method Detail

      • convertXmlValueToModelValue

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

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