Class EnumAttribute<T extends java.lang.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 java.lang.Enum<T>> extends AttributeImpl<T>
An attribute exposing an Enum value
- Author:
- Daniel Meyer
-
-
Constructor Summary
Constructors Constructor Description EnumAttribute(ModelElementType owningElementType, java.lang.Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
convertModelValueToXmlValue(T modelValue)
to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the modelprotected T
convertXmlValueToModelValue(java.lang.String rawValue)
to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the model-
Methods inherited from class org.camunda.bpm.model.xml.impl.type.attribute.AttributeImpl
getAttributeName, getDefaultValue, getIncomingReferences, getNamespaceUri, getOutgoingReferences, getOwningElementType, getValue, isIdAttribute, isRequired, registerIncoming, registerOutgoingReference, removeAttribute, setAttributeName, setDefaultValue, setId, setNamespaceUri, setRequired, setValue, setValue, unlinkReference, updateIncomingReferences
-
-
-
-
Constructor Detail
-
EnumAttribute
public EnumAttribute(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 classAttributeImpl<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 classAttributeImpl<T extends java.lang.Enum<T>>
- Returns:
- the converted value
-
-