Class ModelGraphElement

    • Constructor Detail

      • ModelGraphElement

        public ModelGraphElement()
      • ModelGraphElement

        public ModelGraphElement​(ModelGraphElement toCopy)
        Creates a copy of the given element.
        Parameters:
        toCopy - model graph to create a copy from
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getReferencedObject

        public org.eclipse.emf.ecore.EObject getReferencedObject()
      • setReferencedObject

        public void setReferencedObject​(org.eclipse.emf.ecore.EObject referencedObject)
        Sets the object referenced by this element. The reference may be null to allow model graphs only partially mapping to concrete EMF models.
        Parameters:
        referencedObject - object referenced by the element
      • getAttributes

        public Set<org.eclipse.emf.ecore.EAttribute> getAttributes()
        Attributes of the referenced object which should also be considered attributes of this graph element.
        Returns:
        attributes of this element
      • removeAttribute

        public void removeAttribute​(org.eclipse.emf.ecore.EAttribute attribute)
      • clearAttributes

        public void clearAttributes()
        Removes all attributes currently considered by the element.