Interface IRootObjectProvider

  • All Superinterfaces:
    IManagedService

    public interface IRootObjectProvider
    extends IManagedService
    Provider thar allow clients to get root object (configuration, external data processor, external report, etc) from the given objects: project, URI, eObject. Also allow to subscribe/unsubscribe to change root object events.
    • Method Detail

      • getRootObjects

        Collection<MdObject> getRootObjects​(org.eclipse.emf.common.util.URI uri)
        Return collection of root objects by the given uri
        Parameters:
        uri - the URI (not null)
        Returns:
        the collection of root objects, never null
      • getRootObjects

        Collection<MdObject> getRootObjects​(org.eclipse.emf.ecore.EObject eObject)
        Return collection of root objects by the given eObject
        Parameters:
        eObject - the EObject (not null)
        Returns:
        the collection of root objects, never null
      • getRootObjects

        Collection<MdObject> getRootObjects​(org.eclipse.core.resources.IProject project)
        Return collection of root objects by the given project
        Parameters:
        project - the IProject (not null)
        Returns:
        the collection of root objects, never null
      • getRootObjects

        Collection<MdObject> getRootObjects​(IDtProject project)
        Return collection of root objects by the given project
        Parameters:
        project - the IDtProject, cannot be null
        Returns:
        the collection of root objects, never null
      • getRootParent

        MdObject getRootParent​(org.eclipse.emf.ecore.EObject eObject)
        Returns the root parent of a given object. The root parent is the top object of the project owning a given EObject. Thus, for configuration projects the root parent is the configuration, for projects with external data processors/reports it is the corresponding external object.
        Parameters:
        eObject - The object for which the root parent must be returned
        Returns:
        The root parent of the object