Package org.eclipse.esmf.constraint
Interface RangeConstraint
- All Superinterfaces:
Constraint,ModelElement,NamedElement
- All Known Implementing Classes:
DefaultRangeConstraint
Restricts the value of a Property to a specific set of possible values.
- Since:
- SAMM 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from interface org.eclipse.esmf.metamodel.ModelElement
accept, as, getMetaModelVersion, isMethods inherited from interface org.eclipse.esmf.metamodel.NamedElement
getAspectModelUrn, getDescription, getDescriptions, getName, getPreferredName, getPreferredNames, getSee, hasSyntheticName
-
Method Details
-
getMinValue
Optional<ScalarValue> getMinValue()- Returns:
- the lower bound of the range. The type of the values is determined by the
Typereturned byRangeConstraint#getDataType().
-
getMaxValue
Optional<ScalarValue> getMaxValue()- Returns:
- the upper bound of the range. The type of the values is determined by the
Typereturned byRangeConstraint#getDataType().
-
getLowerBoundDefinition
BoundDefinition getLowerBoundDefinition()- Returns:
- the definition of how the lower bound of the range is to be interpreted. Possible values are 'OPEN', 'AT_LEAST' and 'GREATER_THAN'
- Since:
- SAMM 1.0.0
-
getUpperBoundDefinition
BoundDefinition getUpperBoundDefinition()- Returns:
- the definition of how the upper bound of the range is to be interpreted. Possible values are 'OPEN', 'AT_MOST' and 'LESS_THAN'
- Since:
- SAMM 1.0.0
-