public interface RangeConstraint extends DataConstraint
Title: Framework Support Library
Description: Defines a Range Constraint.
double
numbers and included in the range
([minValue, maxValue]
).
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getMaxValue()
Returns the maximum value of the range.
|
java.lang.Object |
getMinValue()
Returns the minimum value of the range.
|
RangeConstraintType |
getType()
Returns a type of the range.
|
void |
setBoundaryValues(java.lang.Object minValue,
java.lang.Object maxValue)
Sets the minimum and maximum values of the range (the specified values are converted to
double numbers). |
void |
setMaxValue(java.lang.Object value)
Sets the maximum value of the range (the specified value is converted to
double number). |
void |
setMinValue(java.lang.Object value)
Sets the minimum value of the range (the specified value is converted to
double number). |
getDescription, matchesValue, setDescription
getName
RangeConstraintType getType()
java.lang.Object getMinValue()
void setMinValue(java.lang.Object value) throws InvalidRangeBoundaryTypeException
double
number).
[minValue, maxValue]
=> [maxValue, value]
).value
- the value to be set.InvalidRangeBoundaryTypeException
- if the value has invalid type.java.lang.Object getMaxValue()
void setMaxValue(java.lang.Object value) throws InvalidRangeBoundaryTypeException
double
number).
[minValue, maxValue]
=> [value, minValue]
).value
- the value to be set.InvalidRangeBoundaryTypeException
- if the value has invalid type.void setBoundaryValues(java.lang.Object minValue, java.lang.Object maxValue) throws InvalidRangeBoundaryTypeException
double
numbers).minValue
- the minimum value of the range.maxValue
- the maximum value of the range.InvalidRangeBoundaryTypeException
- if any of the values has invalid type.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.