Interface ModelElementProject

All Superinterfaces:
com.dassault_systemes.modeler.foundation.model.ModelElementRegistry
All Known Implementing Classes:
com.dassault_systemes.modeler.foundation.project.ModelElementProjectImpl, Project

@OpenApi public interface ModelElementProject extends com.dassault_systemes.modeler.foundation.model.ModelElementRegistry
A container of BaseElement and services for these elements.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    Returns the project that contains the given element.
    getProject(Collection<? extends BaseElement> elements)
    Returns the project for the given elements.

    Methods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElementRegistry

    addElementByID, getElementByID, isDisposed, isEMFProxiesSupported, isPreloadProject, removeElementByID
  • Method Details

    • getProject

      @OpenApi static ModelElementProject getProject(BaseElement element)
      Returns the project that contains the given element.
      Parameters:
      element - the element
      Returns:
      the project, or null if not available
      See Also:
      • ProjectProvider
    • getProject

      @OpenApi static ModelElementProject getProject(@CheckForNull Collection<? extends BaseElement> elements)
      Returns the project for the given elements.

      If the collection is not empty, the project of the first element is returned.

      Parameters:
      elements - collection of elements
      Returns:
      the project, or null if the collection is null or empty