Class BaseLibrary
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.BaseLibrary
- All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService
Provides typed access to elements from the Base standard library.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classType wrapper for the AnythingClassifier library element.static classType wrapper for the DataValueDataType library element.static classType wrapper for the DataValuesFeature library element.static classType wrapper for the ExactlyOneMultiplicityRange library element.static classType wrapper for the NaturalsFeature library element.static classType wrapper for the ThingsFeature library element.static classType wrapper for the ZeroOrOneMultiplicityRange library element. -
Constructor Summary
ConstructorsConstructorDescriptionBaseLibrary(ModelElementProject project) Creates a BaseLibrary for the given project. -
Method Summary
Modifier and TypeMethodDescriptionAnything()Returns the wrapper for the Anything library element.Returns the wrapper for the DataValue library element.Returns the wrapper for the dataValues library element.Returns the wrapper for the exactlyOne library element.static BaseLibrarygetInstance(BaseElement element) Returns the BaseLibrary instance for the project that owns the given element.static BaseLibrarygetInstanceByProject(ModelElementProject project) Returns the BaseLibrary instance for the given project.protected final Set<com.dassault_systemes.modeler.kerml.libraries.TypeWrapper> Returns the type wrappers exposed by this library.booleanReturns whether this library is treated as semantic.naturals()Returns the wrapper for the naturals library element.Returns the names of the library packages exposed by this wrapper.things()Returns the wrapper for the things library element.Returns the wrapper for the zeroOrOne 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
-
BaseLibrary
Creates a BaseLibrary for the given project.- Parameters:
project- the project that provides access to the library model elements
-
-
Method Details
-
getInstanceByProject
Returns the BaseLibrary instance for the given project.- Parameters:
project- the project whose library instance is requested- Returns:
- the library instance for the project
-
getInstance
Returns the BaseLibrary 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
-
Anything
Returns the wrapper for the Anything library element.- Returns:
- the wrapper for the Anything element
-
DataValue
Returns the wrapper for the DataValue library element.- Returns:
- the wrapper for the DataValue element
-
things
Returns the wrapper for the things library element.- Returns:
- the wrapper for the things element
-
dataValues
Returns the wrapper for the dataValues library element.- Returns:
- the wrapper for the dataValues element
-
naturals
Returns the wrapper for the naturals library element.- Returns:
- the wrapper for the naturals element
-
exactlyOne
Returns the wrapper for the exactlyOne library element.- Returns:
- the wrapper for the exactlyOne element
-
zeroOrOne
Returns the wrapper for the zeroOrOne library element.- Returns:
- the wrapper for the zeroOrOne element
-
getTypeWrappers
Returns the type wrappers exposed by this library.- Specified by:
getTypeWrappersin classAbstractLibrary- Returns:
- type wrappers managed by this library
-