org.exolab.castor.xml.validators
public class DoubleValidator extends PatternValidator implements TypeValidator
Version: $Revision: 5951 $ $Date: 2003-03-03 02:57:21 -0700 (Mon, 03 Mar 2003) $
Constructor Summary | |
---|---|
DoubleValidator()
Creates a new DoubleValidator with no restrictions
|
Method Summary | |
---|---|
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(Object object)
Validates the given Object
|
void | validate(Object object, ValidationContext context)
Validates the given Object
|
Parameters: fixed the fixed value
Parameters: maxValue the maximum value an doublevalidated with this validator must be less than
Parameters: maxValue the maximum value an doublevalidated with this validator may be
Parameters: minValue the minimum value an doublevalidated with this validator must be greater than
Parameters: minValue the minimum value an doublevalidated with this validator may be
Parameters: object the Object to validate
Parameters: object the Object to validate context the ValidationContext