Class ConstraintsLibrary
java.lang.Object
com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService<ModelElementProject>
com.dassault_systemes.modeler.kerml.libraries.AbstractLibrary
com.dassault_systemes.modeler.sysml.libraries.standard.ConstraintsLibrary
- All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService
Access helper for the constraints standard library.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWrapper for the asserted constraint checks constraint usage library element.static classWrapper for the constraint check constraint definition library element.static classWrapper for the constraint checks constraint usage library element.static classWrapper for the negated constraint checks constraint usage library element. -
Constructor Summary
ConstructorsConstructorDescriptionConstraintsLibrary(ModelElementProject project) Creates a new constraints library instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns asserted constraint checks.Returns constraint check.Returns constraint checks.static ConstraintsLibrarygetInstance(BaseElement element) Returns the library instance for the project that owns the given element.static ConstraintsLibrarygetInstanceByProject(ModelElementProject project) Returns the library instance for the given project.protected final Set<com.dassault_systemes.modeler.kerml.libraries.TypeWrapper> Returns get type wrappers.booleanReturns whether this library is semantic.Returns negated constraint checks.Returns the names of the packages that belong to this library.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
-
ConstraintsLibrary
Creates a new constraints library instance.- Parameters:
project- the project
-
-
Method Details
-
getInstanceByProject
Returns the library instance for the given project.- Parameters:
project- the project- Returns:
- get instance by project
-
getInstance
Returns the library instance for the project that owns the given element.- Parameters:
element- the element- Returns:
- get instance
-
isSemantic
public boolean isSemantic()Returns whether this library is semantic.- Specified by:
isSemanticin classAbstractLibrary- Returns:
trueif semantic;falseotherwise
-
packagesNames
Returns the names of the packages that belong to this library.- Specified by:
packagesNamesin classAbstractLibrary- Returns:
- packages names
-
ConstraintCheck
Returns constraint check.- Returns:
- constraint check
-
constraintChecks
Returns constraint checks.- Returns:
- constraint checks
-
assertedConstraintChecks
Returns asserted constraint checks.- Returns:
- asserted constraint checks
-
negatedConstraintChecks
Returns negated constraint checks.- Returns:
- negated constraint checks
-
getTypeWrappers
Returns get type wrappers.- Specified by:
getTypeWrappersin classAbstractLibrary- Returns:
- get type wrappers
-