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.KerMLLibrary
All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService

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

    • KerMLLibrary

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

    • getInstanceByProject

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

      public static KerMLLibrary getInstance(BaseElement element)
      Returns the KerMLLibrary 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
    • Comment

      Returns the wrapper for the Comment library element.
      Returns:
      the wrapper for the Comment element
    • Dependency

      public KerMLLibrary.DependencyMetaclass Dependency()
      Returns the wrapper for the Dependency library element.
      Returns:
      the wrapper for the Dependency element
    • Element

      Returns the wrapper for the Element library element.
      Returns:
      the wrapper for the Element element
    • Namespace

      public KerMLLibrary.NamespaceMetaclass Namespace()
      Returns the wrapper for the Namespace library element.
      Returns:
      the wrapper for the Namespace element
    • Relationship

      public KerMLLibrary.RelationshipMetaclass Relationship()
      Returns the wrapper for the Relationship library element.
      Returns:
      the wrapper for the Relationship element
    • Classifier

      public KerMLLibrary.ClassifierMetaclass Classifier()
      Returns the wrapper for the Classifier library element.
      Returns:
      the wrapper for the Classifier element
    • Feature

      Returns the wrapper for the Feature library element.
      Returns:
      the wrapper for the Feature element
    • Multiplicity

      public KerMLLibrary.MultiplicityMetaclass Multiplicity()
      Returns the wrapper for the Multiplicity library element.
      Returns:
      the wrapper for the Multiplicity element
    • Subclassification

      public KerMLLibrary.SubclassificationMetaclass Subclassification()
      Returns the wrapper for the Subclassification library element.
      Returns:
      the wrapper for the Subclassification element
    • Type

      Returns the wrapper for the Type library element.
      Returns:
      the wrapper for the Type element
    • Behavior

      public KerMLLibrary.BehaviorMetaclass Behavior()
      Returns the wrapper for the Behavior library element.
      Returns:
      the wrapper for the Behavior element
    • Class

      Returns the wrapper for the Class library element.
      Returns:
      the wrapper for the Class element
    • Connector

      public KerMLLibrary.ConnectorMetaclass Connector()
      Returns the wrapper for the Connector library element.
      Returns:
      the wrapper for the Connector element
    • DataType

      public KerMLLibrary.DataTypeMetaclass DataType()
      Returns the wrapper for the DataType library element.
      Returns:
      the wrapper for the DataType element
    • Expression

      public KerMLLibrary.ExpressionMetaclass Expression()
      Returns the wrapper for the Expression library element.
      Returns:
      the wrapper for the Expression element
    • FeatureReferenceExpression

      public KerMLLibrary.FeatureReferenceExpressionMetaclass FeatureReferenceExpression()
      Returns the wrapper for the FeatureReferenceExpression library element.
      Returns:
      the wrapper for the FeatureReferenceExpression element
    • Function

      public KerMLLibrary.FunctionMetaclass Function()
      Returns the wrapper for the Function library element.
      Returns:
      the wrapper for the Function element
    • Interaction

      public KerMLLibrary.InteractionMetaclass Interaction()
      Returns the wrapper for the Interaction library element.
      Returns:
      the wrapper for the Interaction element
    • InvocationExpression

      public KerMLLibrary.InvocationExpressionMetaclass InvocationExpression()
      Returns the wrapper for the InvocationExpression library element.
      Returns:
      the wrapper for the InvocationExpression element
    • LibraryPackage

      public KerMLLibrary.LibraryPackageMetaclass LibraryPackage()
      Returns the wrapper for the LibraryPackage library element.
      Returns:
      the wrapper for the LibraryPackage element
    • LiteralBoolean

      public KerMLLibrary.LiteralBooleanMetaclass LiteralBoolean()
      Returns the wrapper for the LiteralBoolean library element.
      Returns:
      the wrapper for the LiteralBoolean element
    • LiteralExpression

      public KerMLLibrary.LiteralExpressionMetaclass LiteralExpression()
      Returns the wrapper for the LiteralExpression library element.
      Returns:
      the wrapper for the LiteralExpression element
    • LiteralInteger

      public KerMLLibrary.LiteralIntegerMetaclass LiteralInteger()
      Returns the wrapper for the LiteralInteger library element.
      Returns:
      the wrapper for the LiteralInteger element
    • LiteralRational

      public KerMLLibrary.LiteralRationalMetaclass LiteralRational()
      Returns the wrapper for the LiteralRational library element.
      Returns:
      the wrapper for the LiteralRational element
    • LiteralString

      public KerMLLibrary.LiteralStringMetaclass LiteralString()
      Returns the wrapper for the LiteralString library element.
      Returns:
      the wrapper for the LiteralString element
    • NullExpression

      public KerMLLibrary.NullExpressionMetaclass NullExpression()
      Returns the wrapper for the NullExpression library element.
      Returns:
      the wrapper for the NullExpression element
    • Package

      Returns the wrapper for the Package library element.
      Returns:
      the wrapper for the Package 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