public class NumericRangeConstraint extends AbstractConstraint
minimum value or maximum value
are assumed.NumericRangeConstraint.setMinValue(double),
NumericRangeConstraint.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(java.lang.Object value)
Support for evaluation of properties.
|
double |
getMaxValue() |
double |
getMinValue() |
java.util.Map |
getParameters()
Returns the parameters passed to the instance of the constraint.
|
java.lang.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. |
java.lang.String |
toString() |
checkPropertyNotNull, evaluate, evaluateCollection, getShortName, getTitle, initialize, set_shortName, setRegistry, setShortName, setTitlepublic java.lang.String getType()
ConstraintgetType in interface ConstraintgetType in class AbstractConstraintpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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 java.util.Map getParameters()
ConstraintgetParameters in interface ConstraintgetParameters in class AbstractConstraintprotected void evaluateSingleValue(java.lang.Object value)
AbstractConstraintevaluateSingleValue in class AbstractConstraintCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.