Class NamedEnumAttribute<T extends java.lang.Enum<T>>

  • All Implemented Interfaces:
    Attribute<T>

    public class NamedEnumAttribute<T extends java.lang.Enum<T>>
    extends AttributeImpl<T>
    • Field Detail

      • type

        protected final java.lang.Class<T extends java.lang.Enum<T>> type
    • Constructor Detail

      • NamedEnumAttribute

        public NamedEnumAttribute​(ModelElementType owningElementType,
                                  java.lang.Class<T> type)
    • Method Detail

      • convertXmlValueToModelValue

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

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