| RangeFeatureValidation validates that a number is within a given range.
RangeFeatureValidation is a quick and simple class the checks that the given
number resides within a given range.
Capabilities:
-
Default max value is Integer.MAX_VALUE;
-
Default min value is Integer.MIN_VALUE;
-
If only one boundary of the range is set, only that boundary is checked.
-
The value of the integer is contained in the field specified by path.
Example Use:
RangeFeatureValidation x = new RangeFeatureValidation();
x.setMin(3);
x.setMax(5);
x.setName("id");
boolean result = x.validate(feature, featureType, results);
author: rgould, Refractions Research, Inc. author: $Author: cholmesny $ (last modification) version: $Id: RangeValidation.java 22266 2006-10-19 11:30:55Z acuster $ |