public interface ReqIFExtensionElement extends ReqIFExtensionContentElement
The following features are supported:
ReqifPackage.getReqIFExtensionElement()
Modifier and Type | Method and Description |
---|---|
ReqIFExtensionAttribute |
createAttribute(String name,
String value)
Creates and registers a new attribute with the specified name and value.
|
ReqIFExtensionElement |
createElement(String name)
Creates and registers a new extension element with the specified name.
|
ReqIFExtensionText |
createText(String text)
Creates and registers a new extension text owned by this element.
|
ReqIFExtensionElement |
createTextElement(String name,
String text)
Creates and registers a child element which contains a text.
|
String |
getAttribute(String name)
Returns the value of the attribute matching the specified name.
|
boolean |
getAttribute(String name,
boolean defaultValue)
Returns the boolean value of the attribute matching the specified name, using a default value if not found.
|
String |
getAttribute(String name,
String defaultValue)
Returns the value of the attribute matching the specified name, using a default value if not found.
|
com.sodius.mdw.core.model.emf.MDWEList<ReqIFExtensionAttribute> |
getAttributes()
Returns the value of the 'Attributes' containment reference list.
|
ReqIFExtensionElement |
getElement(String name)
Returns the first extension element matching the specified name.
|
com.sodius.mdw.core.model.emf.MDWEList<ReqIFExtensionContentElement> |
getElements()
Returns the value of the 'Elements' containment reference list.
|
com.sodius.mdw.core.model.MDWList<ReqIFExtensionElement> |
getElements(String name)
Returns the list of extension elements matching the specified name.
|
String |
getTagName()
Returns the value of the 'Tag Name' attribute.
|
void |
setAttribute(String name,
boolean value)
Update the boolean value of the attribute matching the specified name.
|
void |
setAttribute(String name,
String value)
Update the value of the attribute matching the specified name.
|
void |
setTagName(String value)
Sets the value of the '
Tag Name ' attribute. |
getParent, setParent
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
String getTagName()
""
.
setTagName(String)
,
ReqifPackage.getReqIFExtensionElement_TagName()
void setTagName(String value)
Tag Name
' attribute.
value
- the new value of the 'Tag Name' attribute.getTagName()
com.sodius.mdw.core.model.emf.MDWEList<ReqIFExtensionContentElement> getElements()
ReqIFExtensionContentElement
.
It is bidirectional and its opposite is 'Parent
'.
ReqifPackage.getReqIFExtensionElement_Elements()
,
ReqIFExtensionContentElement.getParent()
ReqIFExtensionElement createElement(String name)
name
- the element tag name.ReqIFExtensionElement getElement(String name)
name
- the extension element tag name.null
if none.com.sodius.mdw.core.model.MDWList<ReqIFExtensionElement> getElements(String name)
name
- the extension element tag name.ReqIFExtensionText createText(String text)
text
- the text content.ReqIFExtensionElement createTextElement(String name, String text)
name
- the child element name to create.text
- the text content.com.sodius.mdw.core.model.emf.MDWEList<ReqIFExtensionAttribute> getAttributes()
ReqIFExtensionAttribute
.
ReqifPackage.getReqIFExtensionElement_Attributes()
ReqIFExtensionAttribute createAttribute(String name, String value)
name
- the attribute name.value
- the attribute value.String getAttribute(String name)
name
- the attribute name.null
if none.String getAttribute(String name, String defaultValue)
name
- the attribute name.defaultValue
- the default value to return if the attribute is not defined.boolean getAttribute(String name, boolean defaultValue)
name
- the attribute name.defaultValue
- the default value to return if the attribute is not defined.void setAttribute(String name, String value)
name
- the attribute name.value
- the attribute value.void setAttribute(String name, boolean value)
name
- the attribute name.value
- the attribute value.