Interface Element

    • Method Detail

      • getOwnedComments

        MDWEList<Comment> getOwnedComments()
        Returns the value of the 'Owned Comment' containment reference list. The list contents are of type Comment. The Comments owned by this element.
        Returns:
        the value of the 'Owned Comment' containment reference list.
        See Also:
        UMLPackage.getElement_OwnedComment()
      • validateNotOwnSelf

        boolean validateNotOwnSelf​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                   Map context)
        An element may not directly or indirectly own itself. not self.allOwnedElements()->includes(self)
      • validateHasOwner

        boolean validateHasOwner​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 Map context)
        Elements that must be owned must have an owner. self.mustBeOwned() implies owner->notEmpty()
      • getStereotypeApplications

        MDWEList<org.eclipse.emf.ecore.EObject> getStereotypeApplications()
        Retrieves the stereotype applications for this element.
      • getStereotypeApplication

        org.eclipse.emf.ecore.EObject getStereotypeApplication​(Stereotype stereotype)
        Retrieves the application of the specified stereotype for this element, or null if no such stereotype application exists.
      • getRequiredStereotypes

        MDWEList<Stereotype> getRequiredStereotypes()
        Retrieves the stereotypes that are required for this element.
      • getRequiredStereotype

        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.
      • getAppliedStereotypes

        MDWEList<Stereotype> getAppliedStereotypes()
        Retrieves the stereotypes that are applied to this element.
      • getAppliedStereotype

        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.
      • getAppliedSubstereotypes

        MDWEList<Stereotype> getAppliedSubstereotypes​(Stereotype stereotype)
        Retrieves the substereotypes of the specified stereotype that are applied to this element.
      • getAppliedSubstereotype

        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.
      • hasValue

        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.
      • getValue

        Object getValue​(Stereotype stereotype,
                        String propertyName)
        Retrieves the value of the property with the specified name in the specified stereotype for this element.
      • setValue

        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.
      • createEAnnotation

        org.eclipse.emf.ecore.EAnnotation createEAnnotation​(String source)
        Creates an annotation with the specified source and this element as its model element.
      • getRelationships

        MDWEList<Relationship> getRelationships()
        Retrieves the relationships in which this element is involved.
      • getRelationships

        MDWEList<Relationship> getRelationships​(org.eclipse.emf.ecore.EClass eClass)
        Retrieves the relationships of the specified type in which this element is involved.
      • getSourceDirectedRelationships

        MDWEList<DirectedRelationship> getSourceDirectedRelationships()
        Retrieves the directed relationships for which this element is a source.
      • getSourceDirectedRelationships

        MDWEList<DirectedRelationship> getSourceDirectedRelationships​(org.eclipse.emf.ecore.EClass eClass)
        Retrieves the directed relationships of the specified type for which this element is a source.
      • getTargetDirectedRelationships

        MDWEList<DirectedRelationship> getTargetDirectedRelationships()
        Retrieves the directed relationships for which this element is a target.
      • getTargetDirectedRelationships

        MDWEList<DirectedRelationship> getTargetDirectedRelationships​(org.eclipse.emf.ecore.EClass eClass)
        Retrieves the directed relationships of the specified type for which this element is a target.
      • getKeywords

        MDWEList<String> getKeywords()
        Retrieves the keywords for this element.
      • addKeyword

        boolean addKeyword​(String keyword)
        Adds the specified keyword to this element.
      • removeKeyword

        boolean removeKeyword​(String keyword)
        Removes the specified keyword from this element.
      • getNearestPackage

        Package getNearestPackage()
        Retrieves the nearest package that owns (either directly or indirectly) this element, or the element itself (if it is a package).
      • getModel

        Model getModel()
        Retrieves the model that owns (either directly or indirectly) this element.
      • isStereotypeApplicable

        boolean isStereotypeApplicable​(Stereotype stereotype)
        Determines whether the specified stereotype is applicable to this element.
      • isStereotypeRequired

        boolean isStereotypeRequired​(Stereotype stereotype)
        Determines whether the specified stereotype is required for this element.
      • isStereotypeApplied

        boolean isStereotypeApplied​(Stereotype stereotype)
        Determines whether the specified stereotype is applied to this element.
      • applyStereotype

        org.eclipse.emf.ecore.EObject applyStereotype​(Stereotype stereotype)
        Applies the specified stereotype to this element.
      • unapplyStereotype

        org.eclipse.emf.ecore.EObject unapplyStereotype​(Stereotype stereotype)
        Unapplies the specified stereotype from this element.
      • getApplicableStereotypes

        MDWEList<Stereotype> getApplicableStereotypes()
        Retrieves the stereotypes that are applicable to this element, including those that are required and/or may already be applied.
      • getApplicableStereotype

        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.
      • hasKeyword

        boolean hasKeyword​(String keyword)
        Determines whether this element has the specified keyword.
      • destroy

        void destroy()
        Destroys this element by removing all cross references to/from it and removing it from its containing resource or object.
      • allOwnedElements

        MDWEList<Element> allOwnedElements()
        The query allOwnedElements() gives all of the direct and indirect owned elements of an element. result = ownedElement->union(ownedElement->collect(e | e.allOwnedElements()))
      • mustBeOwned

        boolean mustBeOwned()
        The query mustBeOwned() indicates whether elements of this type must have an owner. Subclasses of Element that do not require an owner must override this operation. result = true