Interface IModelElement

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void accept​(IModelVisitor visitor)
      Accept method for the visitor.
      java.lang.String getComment()
      Returns the comment of the model element.
      java.lang.String getName()
      Returns the name of the model element.
      java.lang.String getNameSpace()
      Returns the namespace introduced by this model element.
      IModelElement getParent()
      Returns the parent model element.
      java.lang.String getQualifiedName()
      Returns the qualified name of this element.
      java.lang.String getUniqueName()
      Returns the UniqueName of this model element.
      boolean isTransparent()
      Returns whether this element is transparent regarding the naming hierarchy.
      boolean propagateAttribute​(Attribute attribute)
      Propagates an attribute application from the parent to this element or contained elements.
      void setComment​(java.lang.String comment)
      Changes the (possibly internationalized) comment of this model element.
    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of the model element.
        Returns:
        Name of this model element.
      • getComment

        java.lang.String getComment()
        Returns the comment of the model element.
        Returns:
        Comment of this model element.
        See Also:
        setComment(String)
      • setComment

        void setComment​(java.lang.String comment)
        Changes the (possibly internationalized) comment of this model element. Please note that comments are not stored in the model rather than in additional resource files associated to the model. Use #storeComments(de.uni_hildesheim.sse.model.management.ProjectInfo) for storing comments. Loading of comments is done as part of loading models.
        Parameters:
        comment - the new comment, turned into an empty string if null
      • getNameSpace

        java.lang.String getNameSpace()
        Returns the namespace introduced by this model element.
        Returns:
        the namespace introduced by this model element.
      • accept

        void accept​(IModelVisitor visitor)
        Accept method for the visitor.
        Parameters:
        visitor - The visitor, which should process this model element.
      • getQualifiedName

        java.lang.String getQualifiedName()
        Returns the qualified name of this element.
        Returns:
        the qualified name
      • getUniqueName

        java.lang.String getUniqueName()
        Returns the UniqueName of this model element.
        Returns:
        the unique name of this model element
      • propagateAttribute

        boolean propagateAttribute​(Attribute attribute)
        Propagates an attribute application from the parent to this element or contained elements. This may imply the creation of clones of the given attribute.
        Parameters:
        attribute - the attribute to be propagated
        Returns:
        true if the operation was successful, false if the element is about being attributed multiple times with the same attribute
      • isTransparent

        boolean isTransparent()
        Returns whether this element is transparent regarding the naming hierarchy.
        Returns:
        true if it is transparent, false else
      • getParent

        IModelElement getParent()
        Returns the parent model element.
        Returns:
        the parent model element (may be null)