Class CompositeNodeWithSemanticElement

    • Constructor Detail

      • CompositeNodeWithSemanticElement

        public CompositeNodeWithSemanticElement()
    • Method Detail

      • getSemanticElement

        public org.eclipse.emf.ecore.EObject getSemanticElement()
        Description copied from interface: INode
        Returns the nearest semantic object that is associated with the subtree of this node. May return null whenever the parser refused to create any objects due to unrecoverable errors. Implementations will usually walk up the node tree to find the semantic object. As the node model structure does not reflect the containment structure of the semantic object graph, clients should usually use the utilities in NodeModelUtils to obtain the semantic instance.
        Specified by:
        getSemanticElement in interface INode
        Overrides:
        getSemanticElement in class AbstractNode
        Returns:
        the nearest semantic object that is associated with the subtree of this node. May return null.
        See Also:
        INode.hasDirectSemanticElement(), NodeModelUtils.findActualSemanticObjectFor(INode)
      • basicSetSemanticElement

        protected void basicSetSemanticElement​(org.eclipse.emf.ecore.EObject element)
      • notifyChanged

        public void notifyChanged​(org.eclipse.emf.common.notify.Notification notification)
        Specified by:
        notifyChanged in interface org.eclipse.emf.common.notify.Adapter
      • getTarget

        public org.eclipse.emf.common.notify.Notifier getTarget()
        Specified by:
        getTarget in interface org.eclipse.emf.common.notify.Adapter
      • setTarget

        public void setTarget​(org.eclipse.emf.common.notify.Notifier newTarget)
        Specified by:
        setTarget in interface org.eclipse.emf.common.notify.Adapter
      • isAdapterForType

        public boolean isAdapterForType​(java.lang.Object type)
        Specified by:
        isAdapterForType in interface org.eclipse.emf.common.notify.Adapter