Class EnumAttribute<T extends Enum<T>>

java.lang.Object
org.camunda.bpm.model.xml.impl.type.attribute.AttributeImpl<T>
org.camunda.bpm.model.xml.impl.type.attribute.EnumAttribute<T>
All Implemented Interfaces:
Attribute<T>

public class EnumAttribute<T extends Enum<T>> extends AttributeImpl<T>

An attribute exposing an Enum value

Author:
Daniel Meyer
  • Constructor Details

  • Method Details

    • convertXmlValueToModelValue

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

      protected 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 Enum<T>>
      Returns:
      the converted value