Class LinksLibrary
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.LinksLibrary
- All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService
Provides typed access to elements from the Links standard library.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classType wrapper for the BinaryLinkAssociation library element.static classType wrapper for the BinaryLinksFeature library element.static classType wrapper for the LinkAssociation library element.static classType wrapper for the LinksFeature library element.static classType wrapper for the SelfLinkAssociation library element.static classType wrapper for the SelfLinksFeature library element. -
Constructor Summary
ConstructorsConstructorDescriptionLinksLibrary(ModelElementProject project) Creates a LinksLibrary for the given project. -
Method Summary
Modifier and TypeMethodDescriptionReturns the wrapper for the BinaryLink library element.Returns the wrapper for the binaryLinks library element.static LinksLibrarygetInstance(BaseElement element) Returns the LinksLibrary instance for the project that owns the given element.static LinksLibrarygetInstanceByProject(ModelElementProject project) Returns the LinksLibrary 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.Link()Returns the wrapper for the Link library element.links()Returns the wrapper for the links library element.Returns the names of the library packages exposed by this wrapper.SelfLink()Returns the wrapper for the SelfLink library element.Returns the wrapper for the selfLinks 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
-
LinksLibrary
Creates a LinksLibrary for the given project.- Parameters:
project- the project that provides access to the library model elements
-
-
Method Details
-
getInstanceByProject
Returns the LinksLibrary instance for the given project.- Parameters:
project- the project whose library instance is requested- Returns:
- the library instance for the project
-
getInstance
Returns the LinksLibrary 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
-
Link
Returns the wrapper for the Link library element.- Returns:
- the wrapper for the Link element
-
BinaryLink
Returns the wrapper for the BinaryLink library element.- Returns:
- the wrapper for the BinaryLink element
-
SelfLink
Returns the wrapper for the SelfLink library element.- Returns:
- the wrapper for the SelfLink element
-
links
Returns the wrapper for the links library element.- Returns:
- the wrapper for the links element
-
binaryLinks
Returns the wrapper for the binaryLinks library element.- Returns:
- the wrapper for the binaryLinks element
-
selfLinks
Returns the wrapper for the selfLinks library element.- Returns:
- the wrapper for the selfLinks element
-
getTypeWrappers
Returns the type wrappers exposed by this library.- Specified by:
getTypeWrappersin classAbstractLibrary- Returns:
- type wrappers managed by this library
-