Class EObjectVisitor

    • Method Detail

      • processReference

        public static Collection<org.eclipse.emf.ecore.EObject> processReference​(org.eclipse.emf.ecore.EObject eObject,
                                                                                 org.eclipse.emf.ecore.EReference reference,
                                                                                 boolean resolve)
        Gets collection of EObject values from specified reference in given eObject.
        Parameters:
        eObject - the source EObject, cannot be null
        reference - the feature of the value to fetch, cannot be null
        resolve - whether to resolve.
        Returns:
        the collection of values of the given feature of the object, never null.
      • visit

        public void visit​(org.eclipse.emf.ecore.EObject eObject)
        Traverses the specified eObject recursively.
        Parameters:
        eObject - the object to travers, cannot be null.
      • getSubordinateObjects

        protected Collection<org.eclipse.emf.ecore.EObject> getSubordinateObjects​(org.eclipse.emf.ecore.EObject eObject)
        Returns the subordinate objects of the specified eObject.
        Parameters:
        eObject - the object, cannot be null.
        Returns:
        a collection of subordinate objects, never null.
      • getVisitorCallback

        protected final IEObjectVisitorCallback getVisitorCallback()
        Returns the visitor instance.
        Returns:
        the visitor instance, never null.