public class DoubleValidator extends PatternValidator implements TypeValidator
PatternValidator.DefaultRegExpEvaluator| Constructor and Description |
|---|
DoubleValidator()
Creates a new DoubleValidator with no restrictions
|
| Modifier and Type | Method and Description |
|---|---|
void |
setFixed(double fixed)
Sets the fixed value the double to validate must
be equal to.
|
void |
setMaxExclusive(double maxValue)
Sets the maximum value that decimals validated with this
validator must be less than
|
void |
setMaxInclusive(double maxValue)
Sets the maximum value that decimals validated with this
validator are allowed to be
|
void |
setMinExclusive(double minValue)
Sets the minimum value that decimals validated with this
validator must be greater than
|
void |
setMinInclusive(double minValue)
Sets the minimum value that decimals validated with this
validator are allowed to be
|
void |
validate(double d,
ValidationContext context) |
void |
validate(java.lang.Object object)
Validates the given Object
|
void |
validate(java.lang.Object object,
ValidationContext context)
Validates the given Object
|
getPattern, hasPattern, isNillable, setNillable, setPattern, validatepublic DoubleValidator()
public void setFixed(double fixed)
fixed - the fixed valuepublic void setMinExclusive(double minValue)
minValue - the minimum value an doublevalidated with this
validator must be greater thanpublic void setMinInclusive(double minValue)
minValue - the minimum value an doublevalidated with this
validator may bepublic void setMaxExclusive(double maxValue)
maxValue - the maximum value an doublevalidated with this
validator must be less thanpublic void setMaxInclusive(double maxValue)
maxValue - the maximum value an doublevalidated with this
validator may bepublic void validate(double d,
ValidationContext context)
throws ValidationException
ValidationExceptionpublic void validate(java.lang.Object object)
throws ValidationException
object - the Object to validateValidationExceptionpublic void validate(java.lang.Object object,
ValidationContext context)
throws ValidationException
validate in interface TypeValidatorvalidate in class PatternValidatorobject - the Object to validatecontext - the ValidationContextValidationExceptionIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com