java.lang.Object
com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService<ModelElementProject>
com.dassault_systemes.modeler.kerml.libraries.AbstractLibrary
com.dassault_systemes.modeler.kerml.libraries.standard.ObjectsLibrary
All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService

@OpenApiAll public class ObjectsLibrary extends AbstractLibrary
Provides typed access to elements from the Objects standard library.
  • Constructor Details

    • ObjectsLibrary

      public ObjectsLibrary(ModelElementProject project)
      Creates a ObjectsLibrary for the given project.
      Parameters:
      project - the project that provides access to the library model elements
  • Method Details

    • getInstanceByProject

      public static ObjectsLibrary getInstanceByProject(ModelElementProject project)
      Returns the ObjectsLibrary instance for the given project.
      Parameters:
      project - the project whose library instance is requested
      Returns:
      the library instance for the project
    • getInstance

      public static ObjectsLibrary getInstance(BaseElement element)
      Returns the ObjectsLibrary instance for the project that owns the given element.
      Parameters:
      element - the element whose owning project is used to resolve the library instance
      Returns:
      the library instance associated with the element project
    • isSemantic

      public boolean isSemantic()
      Returns whether this library is treated as semantic.
      Specified by:
      isSemantic in class AbstractLibrary
      Returns:
      true if this library is semantic
    • packagesNames

      protected Set<String> packagesNames()
      Returns the names of the library packages exposed by this wrapper.
      Specified by:
      packagesNames in class AbstractLibrary
      Returns:
      package names that belong to this library
    • Object

      Returns the wrapper for the Object library element.
      Returns:
      the wrapper for the Object element
    • LinkObject

      Returns the wrapper for the LinkObject library element.
      Returns:
      the wrapper for the LinkObject element
    • BinaryLinkObject

      Returns the wrapper for the BinaryLinkObject library element.
      Returns:
      the wrapper for the BinaryLinkObject element
    • objects

      Returns the wrapper for the objects library element.
      Returns:
      the wrapper for the objects element
    • linkObjects

      public ObjectsLibrary.LinkObjectsFeature linkObjects()
      Returns the wrapper for the linkObjects library element.
      Returns:
      the wrapper for the linkObjects element
    • binaryLinkObjects

      public ObjectsLibrary.BinaryLinkObjectsFeature binaryLinkObjects()
      Returns the wrapper for the binaryLinkObjects library element.
      Returns:
      the wrapper for the binaryLinkObjects element
    • getTypeWrappers

      protected final Set<com.dassault_systemes.modeler.kerml.libraries.TypeWrapper> getTypeWrappers()
      Returns the type wrappers exposed by this library.
      Specified by:
      getTypeWrappers in class AbstractLibrary
      Returns:
      type wrappers managed by this library