Class KerMLLibrary
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
Provides typed access to elements from the KerML standard library.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classType wrapper for the BehaviorMetaclass library element.static classType wrapper for the ClassifierMetaclass library element.static classType wrapper for the ClassMetaclass library element.static classType wrapper for the CommentMetaclass library element.static classType wrapper for the ConnectorMetaclass library element.static classType wrapper for the DataTypeMetaclass library element.static classType wrapper for the DependencyMetaclass library element.static classType wrapper for the ElementMetaclass library element.static classType wrapper for the ExpressionMetaclass library element.static classType wrapper for the FeatureMetaclass library element.static classType wrapper for the FeatureReferenceExpressionMetaclass library element.static classType wrapper for the FunctionMetaclass library element.static classType wrapper for the InteractionMetaclass library element.static classType wrapper for the InvocationExpressionMetaclass library element.static classType wrapper for the LibraryPackageMetaclass library element.static classType wrapper for the LiteralBooleanMetaclass library element.static classType wrapper for the LiteralExpressionMetaclass library element.static classType wrapper for the LiteralIntegerMetaclass library element.static classType wrapper for the LiteralRationalMetaclass library element.static classType wrapper for the LiteralStringMetaclass library element.static classType wrapper for the MultiplicityMetaclass library element.static classType wrapper for the NamespaceMetaclass library element.static classType wrapper for the NullExpressionMetaclass library element.static classType wrapper for the PackageMetaclass library element.static classType wrapper for the RelationshipMetaclass library element.static classType wrapper for the SubclassificationMetaclass library element.static classType wrapper for the TypeMetaclass library element. -
Constructor Summary
ConstructorsConstructorDescriptionKerMLLibrary(ModelElementProject project) Creates a KerMLLibrary for the given project. -
Method Summary
Modifier and TypeMethodDescriptionBehavior()Returns the wrapper for the Behavior library element.Class()Returns the wrapper for the Class library element.Returns the wrapper for the Classifier library element.Comment()Returns the wrapper for the Comment library element.Returns the wrapper for the Connector library element.DataType()Returns the wrapper for the DataType library element.Returns the wrapper for the Dependency library element.Element()Returns the wrapper for the Element library element.Returns the wrapper for the Expression library element.Feature()Returns the wrapper for the Feature library element.Returns the wrapper for the FeatureReferenceExpression library element.Function()Returns the wrapper for the Function library element.static KerMLLibrarygetInstance(BaseElement element) Returns the KerMLLibrary instance for the project that owns the given element.static KerMLLibrarygetInstanceByProject(ModelElementProject project) Returns the KerMLLibrary instance for the given project.protected final Set<com.dassault_systemes.modeler.kerml.libraries.TypeWrapper> Returns the type wrappers exposed by this library.Returns the wrapper for the Interaction library element.Returns the wrapper for the InvocationExpression library element.booleanReturns whether this library is treated as semantic.Returns the wrapper for the LibraryPackage library element.Returns the wrapper for the LiteralBoolean library element.Returns the wrapper for the LiteralExpression library element.Returns the wrapper for the LiteralInteger library element.Returns the wrapper for the LiteralRational library element.Returns the wrapper for the LiteralString library element.Returns the wrapper for the Multiplicity library element.Returns the wrapper for the Namespace library element.Returns the wrapper for the NullExpression library element.Package()Returns the wrapper for the Package library element.Returns the names of the library packages exposed by this wrapper.Returns the wrapper for the Relationship library element.Returns the wrapper for the Subclassification library element.Type()Returns the wrapper for the Type library element.Methods inherited from class com.dassault_systemes.modeler.kerml.libraries.AbstractLibrary
findFunctionInLibrary, findLibraryPackage, findPackage, getLibraryPackages, getNamespace, initializedMethods inherited from class com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService
disposeService, getIfPresent, getOrCreateInstance, getOrCreateInstanceWithNullSupport, getReferencedProject
-
Constructor Details
-
KerMLLibrary
Creates a KerMLLibrary for the given project.- Parameters:
project- the project that provides access to the library model elements
-
-
Method Details
-
getInstanceByProject
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
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:
isSemanticin classAbstractLibrary- Returns:
trueif this library is semantic
-
packagesNames
Returns the names of the library packages exposed by this wrapper.- Specified by:
packagesNamesin classAbstractLibrary- 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
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
Returns the wrapper for the Namespace library element.- Returns:
- the wrapper for the Namespace element
-
Relationship
Returns the wrapper for the Relationship library element.- Returns:
- the wrapper for the Relationship element
-
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
Returns the wrapper for the Multiplicity library element.- Returns:
- the wrapper for the Multiplicity element
-
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
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
Returns the wrapper for the Connector library element.- Returns:
- the wrapper for the Connector element
-
DataType
Returns the wrapper for the DataType library element.- Returns:
- the wrapper for the DataType element
-
Expression
Returns the wrapper for the Expression library element.- Returns:
- the wrapper for the Expression element
-
FeatureReferenceExpression
Returns the wrapper for the FeatureReferenceExpression library element.- Returns:
- the wrapper for the FeatureReferenceExpression element
-
Function
Returns the wrapper for the Function library element.- Returns:
- the wrapper for the Function element
-
Interaction
Returns the wrapper for the Interaction library element.- Returns:
- the wrapper for the Interaction element
-
InvocationExpression
Returns the wrapper for the InvocationExpression library element.- Returns:
- the wrapper for the InvocationExpression element
-
LibraryPackage
Returns the wrapper for the LibraryPackage library element.- Returns:
- the wrapper for the LibraryPackage element
-
LiteralBoolean
Returns the wrapper for the LiteralBoolean library element.- Returns:
- the wrapper for the LiteralBoolean element
-
LiteralExpression
Returns the wrapper for the LiteralExpression library element.- Returns:
- the wrapper for the LiteralExpression element
-
LiteralInteger
Returns the wrapper for the LiteralInteger library element.- Returns:
- the wrapper for the LiteralInteger element
-
LiteralRational
Returns the wrapper for the LiteralRational library element.- Returns:
- the wrapper for the LiteralRational element
-
LiteralString
Returns the wrapper for the LiteralString library element.- Returns:
- the wrapper for the LiteralString element
-
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
Returns the type wrappers exposed by this library.- Specified by:
getTypeWrappersin classAbstractLibrary- Returns:
- type wrappers managed by this library
-