Class OccurrencesLibrary
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.OccurrencesLibrary
- All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService
Provides typed access to elements from the Occurrences standard library.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classType wrapper for the HappensBeforeLinksFeature library element.static classType wrapper for the HappensLinkAssociation library element.static classType wrapper for the LifeClass library element.static classType wrapper for the OccurrenceClass library element.static classType wrapper for the OccurrencesFeature library element. -
Constructor Summary
ConstructorsConstructorDescriptionOccurrencesLibrary(ModelElementProject project) Creates a OccurrencesLibrary for the given project. -
Method Summary
Modifier and TypeMethodDescriptionstatic OccurrencesLibrarygetInstance(BaseElement element) Returns the OccurrencesLibrary instance for the project that owns the given element.static OccurrencesLibrarygetInstanceByProject(ModelElementProject project) Returns the OccurrencesLibrary 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 happensBeforeLinks library element.Returns the wrapper for the HappensLink library element.booleanReturns whether this library is treated as semantic.Life()Returns the wrapper for the Life library element.Returns the wrapper for the Occurrence library element.Returns the wrapper for the occurrences library element.Returns the names of the library packages exposed by this wrapper.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
-
OccurrencesLibrary
Creates a OccurrencesLibrary for the given project.- Parameters:
project- the project that provides access to the library model elements
-
-
Method Details
-
getInstanceByProject
Returns the OccurrencesLibrary instance for the given project.- Parameters:
project- the project whose library instance is requested- Returns:
- the library instance for the project
-
getInstance
Returns the OccurrencesLibrary 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
-
Occurrence
Returns the wrapper for the Occurrence library element.- Returns:
- the wrapper for the Occurrence element
-
Life
Returns the wrapper for the Life library element.- Returns:
- the wrapper for the Life element
-
occurrences
Returns the wrapper for the occurrences library element.- Returns:
- the wrapper for the occurrences element
-
HappensLink
Returns the wrapper for the HappensLink library element.- Returns:
- the wrapper for the HappensLink element
-
happensBeforeLinks
Returns the wrapper for the happensBeforeLinks library element.- Returns:
- the wrapper for the happensBeforeLinks element
-
getTypeWrappers
Returns the type wrappers exposed by this library.- Specified by:
getTypeWrappersin classAbstractLibrary- Returns:
- type wrappers managed by this library
-