*/
public void validate(final double d, final ValidationContext context)
throws ValidationException {
if (_useFixed && d != _fixed) {
String err = "double " + d + " is not equal to the fixed value: " + _fixed;
throw new ValidationException(err);
}
if (_useMinInclusive && d < _minInclusive) {
String err = "double " + d + " is less than the minimum allowed value: "
+ _minInclusive;
throw new ValidationException(err);
}
if (_useMinExclusive && d <= _minExclusive) {
String err = "double " + d
+ " is less than or equal to the maximum exclusive value: " + _minExclusive;
throw new ValidationException(err);
}
if (_useMaxInclusive && d > _maxInclusive) {
String err = "double " + d + " is greater than the maximum allowed value: "
+ _maxInclusive;
throw new ValidationException(err);
}
if (_useMaxExclusive && d >= _maxExclusive) {
String err = "double " + d
+ " is greater than or equal to the maximum exclusive value: " + _maxExclusive;
throw new ValidationException(err);
}
if (hasPattern()) {
super.validate(Double.toString(d), context);
}