public class NamedEnumAttribute<T extends Enum<T>> extends AttributeImpl<T>
Constructor and Description |
---|
NamedEnumAttribute(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, unlinkReference, updateIncomingReferences
public NamedEnumAttribute(ModelElementType owningElementType, Class<T> type)
protected T convertXmlValueToModelValue(String rawValue)
AttributeImpl
convertXmlValueToModelValue
in class AttributeImpl<T extends Enum<T>>
protected String convertModelValueToXmlValue(T modelValue)
AttributeImpl
convertModelValueToXmlValue
in class AttributeImpl<T extends Enum<T>>
Copyright © 2017. All rights reserved.