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 MethodsModifier and TypeMethodDescriptionstatic ModelElementProjectgetProject(BaseElement element) Returns the project that contains the given element.static ModelElementProjectgetProject(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
Returns the project that contains the given element.- Parameters:
element- the element- Returns:
- the project, or
nullif not available - See Also:
-
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
nullif the collection isnullor empty
-