Package org.eclipse.esmf.constraint.impl
Class DefaultRangeConstraint
java.lang.Object
org.eclipse.esmf.metamodel.impl.ModelElementImpl
org.eclipse.esmf.metamodel.impl.DefaultConstraint
org.eclipse.esmf.constraint.impl.DefaultRangeConstraint
- All Implemented Interfaces:
Comparable<ModelElementImpl>,RangeConstraint,Constraint,ModelElement,NamedElement
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRangeConstraint(MetaModelBaseAttributes metaModelBaseAttributes, Optional<ScalarValue> minValue, Optional<ScalarValue> maxValue, BoundDefinition lowerBoundDefinition, BoundDefinition upperBoundDefinition) -
Method Summary
Modifier and TypeMethodDescription<T,C> T accept(AspectVisitor<T, C> visitor, C context) Accepts an Aspect visitorbooleanThe upper bound of a range.The lower bound of a range.inthashCode()toString()Methods inherited from class org.eclipse.esmf.metamodel.impl.ModelElementImpl
compareTo, getAspectModelUrn, getDescriptions, getMetaModelVersion, getName, getPreferredNames, getSee, hasSyntheticNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.esmf.metamodel.ModelElement
as, getMetaModelVersion, isMethods inherited from interface org.eclipse.esmf.metamodel.NamedElement
getAspectModelUrn, getDescription, getDescriptions, getName, getPreferredName, getPreferredNames, getSee, hasSyntheticName
-
Constructor Details
-
DefaultRangeConstraint
public DefaultRangeConstraint(MetaModelBaseAttributes metaModelBaseAttributes, Optional<ScalarValue> minValue, Optional<ScalarValue> maxValue, BoundDefinition lowerBoundDefinition, BoundDefinition upperBoundDefinition)
-
-
Method Details
-
getMinValue
The lower bound of a range.- Specified by:
getMinValuein interfaceRangeConstraint- Returns:
- the minValue.
-
getMaxValue
The upper bound of a range.- Specified by:
getMaxValuein interfaceRangeConstraint- Returns:
- the maxValue.
-
getLowerBoundDefinition
- Specified by:
getLowerBoundDefinitionin interfaceRangeConstraint- Returns:
- the definition of how the lower bound of the range is to be interpreted. Possible values are 'OPEN', 'AT_LEAST' and 'GREATER_THAN'
-
getUpperBoundDefinition
- Specified by:
getUpperBoundDefinitionin interfaceRangeConstraint- Returns:
- the definition of how the upper bound of the range is to be interpreted. Possible values are 'OPEN', 'AT_MOST' and 'LESS_THAN'
-
accept
Accepts an Aspect visitor- Specified by:
acceptin interfaceModelElement- Overrides:
acceptin classDefaultConstraint- Type Parameters:
T- The result type of the traversal operationC- The context of the visitor traversal- Parameters:
visitor- The visitor to accept
-
toString
- Overrides:
toStringin classDefaultConstraint
-
equals
- Overrides:
equalsin classModelElementImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classModelElementImpl
-