public interface Element extends MDWEObject
The following features are supported:
UMLPackage.getElement()
Modifier and Type | Method and Description |
---|---|
boolean |
addKeyword(String keyword)
Adds the specified keyword to this element
|
MDWEList<Element> |
allOwnedElements()
The query allOwnedElements() gives all of the direct and indirect owned elements of an element.
|
EObject |
applyStereotype(Stereotype stereotype)
Applies the specified stereotype to this element
|
EAnnotation |
createEAnnotation(String source)
Creates an annotation with the specified source and this element as its model element
|
Comment |
createOwnedComment()
Creates a new
Comment and appends it to the 'Owned Comment' containment reference list |
void |
destroy()
Destroys this element by removing all cross references to/from it and removing it from its containing resource or object
|
Stereotype |
getApplicableStereotype(String qualifiedName)
Retrieves the stereotype with the specified qualified name that is applicable to this element, or null if no such stereotype is applicable
|
MDWEList<Stereotype> |
getApplicableStereotypes()
Retrieves the stereotypes that are applicable to this element, including those that are required and/or may already be applied
|
Stereotype |
getAppliedStereotype(String qualifiedName)
Retrieves the stereotype with the specified qualified name that is applied to this element, or null if no such stereotype is applied
|
MDWEList<Stereotype> |
getAppliedStereotypes()
Retrieves the stereotypes that are applied to this element
|
Stereotype |
getAppliedSubstereotype(Stereotype stereotype,
String qualifiedName)
Retrieves the substereotype of the specified stereotype with the specified qualified name that is applied to this element, or null if no such
stereotype is applied
|
MDWEList<Stereotype> |
getAppliedSubstereotypes(Stereotype stereotype)
Retrieves the substereotypes of the specified stereotype that are applied to this element
|
MDWEList<String> |
getKeywords()
Retrieves the keywords for this element
|
Model |
getModel()
Retrieves the model that owns (either directly or indirectly) this element
|
Package |
getNearestPackage()
Retrieves the nearest package that owns (either directly or indirectly) this element, or the element itself (if it is a package)
|
MDWEList<Comment> |
getOwnedComments()
Returns the value of the 'Owned Comment' containment reference list.
|
MDWEList<Element> |
getOwnedElements()
Returns the value of the 'Owned Element' reference list.
|
Element |
getOwner()
Returns the value of the 'Owner' reference.
|
MDWEList<Relationship> |
getRelationships()
Retrieves the relationships in which this element is involved
|
MDWEList<Relationship> |
getRelationships(EClass eClass)
Retrieves the relationships of the specified type in which this element is involved
|
Stereotype |
getRequiredStereotype(String qualifiedName)
Retrieves the stereotype with the specified qualified name that is required for this element, or null if no such stereotype is required
|
MDWEList<Stereotype> |
getRequiredStereotypes()
Retrieves the stereotypes that are required for this element
|
MDWEList<DirectedRelationship> |
getSourceDirectedRelationships()
Retrieves the directed relationships for which this element is a source
|
MDWEList<DirectedRelationship> |
getSourceDirectedRelationships(EClass eClass)
Retrieves the directed relationships of the specified type for which this element is a source
|
EObject |
getStereotypeApplication(Stereotype stereotype)
Retrieves the application of the specified stereotype for this element, or null if no such stereotype application exists
|
MDWEList<EObject> |
getStereotypeApplications()
Retrieves the stereotype applications for this element
|
MDWEList<DirectedRelationship> |
getTargetDirectedRelationships()
Retrieves the directed relationships for which this element is a target
|
MDWEList<DirectedRelationship> |
getTargetDirectedRelationships(EClass eClass)
Retrieves the directed relationships of the specified type for which this element is a target
|
Object |
getValue(Stereotype stereotype,
String propertyName)
Retrieves the value of the property with the specified name in the specified stereotype for this element
|
boolean |
hasKeyword(String keyword)
Determines whether this element has the specified keyword
|
boolean |
hasValue(Stereotype stereotype,
String propertyName)
Determines whether this element has a (non-default) value for the property with the specified name in the specified stereotype
|
boolean |
isStereotypeApplicable(Stereotype stereotype)
Determines whether the specified stereotype is applicable to this element
|
boolean |
isStereotypeApplied(Stereotype stereotype)
Determines whether the specified stereotype is applied to this element
|
boolean |
isStereotypeRequired(Stereotype stereotype)
Determines whether the specified stereotype is required for this element
|
boolean |
mustBeOwned()
The query mustBeOwned() indicates whether elements of this type must have an owner.
|
boolean |
removeKeyword(String keyword)
Removes the specified keyword from this element
|
void |
setValue(Stereotype stereotype,
String propertyName,
Object newValue)
Sets the value of the property with the specified name in the specified stereotype for this element
|
EObject |
unapplyStereotype(Stereotype stereotype)
Unapplies the specified stereotype from this element
|
boolean |
validateHasOwner(DiagnosticChain diagnostics,
Map context)
Elements that must be owned must have an owner.
|
boolean |
validateNotOwnSelf(DiagnosticChain diagnostics,
Map context)
An element may not directly or indirectly own itself.
|
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
MDWEList<Element> getOwnedElements()
Element
.
It is bidirectional and its opposite is 'Owner
'.
The Elements owned by this element.
UMLPackage.getElement_OwnedElement()
,
getOwner()
Element getOwner()
Owned Element
'.
The Element that owns this element.
UMLPackage.getElement_Owner()
,
getOwnedElements()
MDWEList<Comment> getOwnedComments()
Comment
.
The Comments owned by this element.
UMLPackage.getElement_OwnedComment()
Comment createOwnedComment()
Comment
and appends it to the 'Owned Comment' containment reference list.
Comment
.getOwnedComments()
boolean validateNotOwnSelf(DiagnosticChain diagnostics, Map context)
boolean validateHasOwner(DiagnosticChain diagnostics, Map context)
MDWEList<EObject> getStereotypeApplications()
EObject getStereotypeApplication(Stereotype stereotype)
MDWEList<Stereotype> getRequiredStereotypes()
Stereotype getRequiredStereotype(String qualifiedName)
MDWEList<Stereotype> getAppliedStereotypes()
Stereotype getAppliedStereotype(String qualifiedName)
MDWEList<Stereotype> getAppliedSubstereotypes(Stereotype stereotype)
Stereotype getAppliedSubstereotype(Stereotype stereotype, String qualifiedName)
boolean hasValue(Stereotype stereotype, String propertyName)
Object getValue(Stereotype stereotype, String propertyName)
void setValue(Stereotype stereotype, String propertyName, Object newValue)
EAnnotation createEAnnotation(String source)
MDWEList<Relationship> getRelationships()
MDWEList<Relationship> getRelationships(EClass eClass)
MDWEList<DirectedRelationship> getSourceDirectedRelationships()
MDWEList<DirectedRelationship> getSourceDirectedRelationships(EClass eClass)
MDWEList<DirectedRelationship> getTargetDirectedRelationships()
MDWEList<DirectedRelationship> getTargetDirectedRelationships(EClass eClass)
boolean addKeyword(String keyword)
boolean removeKeyword(String keyword)
Package getNearestPackage()
Model getModel()
boolean isStereotypeApplicable(Stereotype stereotype)
boolean isStereotypeRequired(Stereotype stereotype)
boolean isStereotypeApplied(Stereotype stereotype)
EObject applyStereotype(Stereotype stereotype)
EObject unapplyStereotype(Stereotype stereotype)
MDWEList<Stereotype> getApplicableStereotypes()
Stereotype getApplicableStereotype(String qualifiedName)
boolean hasKeyword(String keyword)
void destroy()
MDWEList<Element> allOwnedElements()
boolean mustBeOwned()