public class EnumAttribute<T extends Enum<T>> extends AttributeImpl<T>
An attribute exposing an Enum value
| Constructor and Description |
|---|
EnumAttribute(ModelElementType owningElementType,
Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
convertModelValueToXmlValue(T modelValue)
to be implemented by subclasses: converts the raw (String) value of the
attribute to the type required by the model
|
protected T |
convertXmlValueToModelValue(String rawValue)
to be implemented by subclasses: converts the raw (String) value of the
attribute to the type required by the model
|
getAttributeName, getDefaultValue, getIncomingReferences, getNamespaceUri, getOutgoingReferences, getOwningElementType, getValue, isIdAttribute, isRequired, registerIncoming, registerOutgoingReference, removeAttribute, setAttributeName, setDefaultValue, setId, setNamespaceUri, setRequired, setValue, setValue, unlinkReference, updateIncomingReferencespublic EnumAttribute(ModelElementType owningElementType, Class<T> type)
protected T convertXmlValueToModelValue(String rawValue)
AttributeImplconvertXmlValueToModelValue in class AttributeImpl<T extends Enum<T>>protected String convertModelValueToXmlValue(T modelValue)
AttributeImplconvertModelValueToXmlValue in class AttributeImpl<T extends Enum<T>>Copyright © 2014–2019 camunda services GmbH. All rights reserved.