public class NumericRangeConstraint extends AbstractConstraint
minimum value or maximum value
are assumed.setMinValue(double),
setMaxValue(double),
Double.parseDouble(java.lang.String)ERR_EVALUATE_EXCEPTION, ERR_PROP_NOT_SET| Constructor and Description |
|---|
NumericRangeConstraint() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
evaluateSingleValue(Object value)
Support for evaluation of properties.
|
double |
getMaxValue() |
double |
getMinValue() |
Map<String,Object> |
getParameters()
Returns the parameters passed to the instance of the constraint.
|
String |
getType()
Returns the 'type' of the constraint, this is the identifier given to
constraint in the configuration.
|
void |
setMaxValue(double maxValue)
Set the maximum value allowed, which can be any value between
Double.MIN_VALUE and Double.MAX_VALUE. |
void |
setMinValue(double minValue)
Set the minimum value allowed, which can be any value between
Double.MIN_VALUE and Double.MAX_VALUE. |
String |
toString() |
checkPropertyNotNull, evaluate, evaluateCollection, getShortName, getTitle, initialize, set_shortName, setRegistry, setShortName, setTitlepublic String getType()
ConstraintgetType in interface ConstraintgetType in class AbstractConstraintpublic double getMinValue()
public void setMinValue(double minValue)
Double.MIN_VALUE and Double.MAX_VALUE.minValue - the minimum value allowed by the constraintpublic double getMaxValue()
public void setMaxValue(double maxValue)
Double.MIN_VALUE and Double.MAX_VALUE.maxValue - the minimum value allowed by the constraintpublic Map<String,Object> getParameters()
ConstraintgetParameters in interface ConstraintgetParameters in class AbstractConstraintprotected void evaluateSingleValue(Object value)
AbstractConstraintevaluateSingleValue in class AbstractConstraintCopyright © 2005–2019 Alfresco Software. All rights reserved.