Class ScalarValuesLibrary
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.ScalarValuesLibrary
- All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService
Provides typed access to elements from the ScalarValues standard library.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classType wrapper for the BooleanDataType library element.static classType wrapper for the ComplexDataType library element.static classType wrapper for the IntegerDataType library element.static classType wrapper for the NaturalDataType library element.static classType wrapper for the NumberDataType library element.static classType wrapper for the NumericalValueDataType library element.static classType wrapper for the PositiveDataType library element.static classType wrapper for the RationalDataType library element.static classType wrapper for the RealDataType library element.static classType wrapper for the ScalarValueDataType library element.static classType wrapper for the StringDataType library element. -
Constructor Summary
ConstructorsConstructorDescriptionScalarValuesLibrary(ModelElementProject project) Creates a ScalarValuesLibrary for the given project. -
Method Summary
Modifier and TypeMethodDescriptionBoolean()Returns the wrapper for the Boolean library element.Complex()Returns the wrapper for the Complex library element.static ScalarValuesLibrarygetInstance(BaseElement element) Returns the ScalarValuesLibrary instance for the project that owns the given element.static ScalarValuesLibrarygetInstanceByProject(ModelElementProject project) Returns the ScalarValuesLibrary instance for the given project.protected final Set<com.dassault_systemes.modeler.kerml.libraries.TypeWrapper> Returns the type wrappers exposed by this library.Integer()Returns the wrapper for the Integer library element.booleanReturns whether this library is treated as semantic.Natural()Returns the wrapper for the Natural library element.Number()Returns the wrapper for the Number library element.Returns the wrapper for the NumericalValue library element.Returns the names of the library packages exposed by this wrapper.Positive()Returns the wrapper for the Positive library element.Rational()Returns the wrapper for the Rational library element.Real()Returns the wrapper for the Real library element.Returns the wrapper for the ScalarValue library element.String()Returns the wrapper for the String 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
-
ScalarValuesLibrary
Creates a ScalarValuesLibrary for the given project.- Parameters:
project- the project that provides access to the library model elements
-
-
Method Details
-
getInstanceByProject
Returns the ScalarValuesLibrary instance for the given project.- Parameters:
project- the project whose library instance is requested- Returns:
- the library instance for the project
-
getInstance
Returns the ScalarValuesLibrary 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
-
ScalarValue
Returns the wrapper for the ScalarValue library element.- Returns:
- the wrapper for the ScalarValue element
-
Boolean
Returns the wrapper for the Boolean library element.- Returns:
- the wrapper for the Boolean element
-
String
Returns the wrapper for the String library element.- Returns:
- the wrapper for the String element
-
NumericalValue
Returns the wrapper for the NumericalValue library element.- Returns:
- the wrapper for the NumericalValue element
-
Number
Returns the wrapper for the Number library element.- Returns:
- the wrapper for the Number element
-
Complex
Returns the wrapper for the Complex library element.- Returns:
- the wrapper for the Complex element
-
Real
Returns the wrapper for the Real library element.- Returns:
- the wrapper for the Real element
-
Rational
Returns the wrapper for the Rational library element.- Returns:
- the wrapper for the Rational element
-
Integer
Returns the wrapper for the Integer library element.- Returns:
- the wrapper for the Integer element
-
Natural
Returns the wrapper for the Natural library element.- Returns:
- the wrapper for the Natural element
-
Positive
Returns the wrapper for the Positive library element.- Returns:
- the wrapper for the Positive element
-
getTypeWrappers
Returns the type wrappers exposed by this library.- Specified by:
getTypeWrappersin classAbstractLibrary- Returns:
- type wrappers managed by this library
-