org.camunda.bpm.model.xml.impl.type.attribute
Class NamedEnumAttribute<T extends Enum<T>>

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

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


Field Summary
protected  Class<T> type
           
 
Constructor Summary
NamedEnumAttribute(ModelElementType owningElementType, Class<T> type)
           
 
Method Summary
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
 
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, unlinkReference, updateIncomingReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected final Class<T extends Enum<T>> type
Constructor Detail

NamedEnumAttribute

public NamedEnumAttribute(ModelElementType owningElementType,
                          Class<T> type)
Method Detail

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


Copyright © 2015 camunda services GmbH. All rights reserved.