public class BooleanAttribute extends AttributeImpl<Boolean>
class for providing Boolean value attributes. Takes care of type conversion and the interaction with the underlying Xml model model.
Constructor and Description |
---|
BooleanAttribute(ModelElementType owningElementType) |
Modifier and Type | Method and Description |
---|---|
protected String |
convertModelValueToXmlValue(Boolean modelValue)
to be implemented by subclasses: converts the raw (String) value of the
attribute to the type required by the model
|
protected Boolean |
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 BooleanAttribute(ModelElementType owningElementType)
protected Boolean convertXmlValueToModelValue(String rawValue)
AttributeImpl
convertXmlValueToModelValue
in class AttributeImpl<Boolean>
protected String convertModelValueToXmlValue(Boolean modelValue)
AttributeImpl
convertModelValueToXmlValue
in class AttributeImpl<Boolean>
Copyright © 2017. All rights reserved.