org.exolab.castor.xml.validators
Class DoubleValidator
- TypeValidator
public class DoubleValidator
The Double Validation class. This class handles validation
for the double type.
$Revision: 1.2 $ $Date: 2003/03/03 09:57:21 $
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(Object object) - Validates the given Object
|
void | validate(Object object, ValidationContext context) - Validates the given Object
|
void | validate(double d, ValidationContext context)
|
DoubleValidator
public DoubleValidator()
Creates a new DoubleValidator with no restrictions
setFixed
public void setFixed(double fixed)
Sets the fixed value the double to validate must
be equal to.
setMaxExclusive
public void setMaxExclusive(double maxValue)
Sets the maximum value that decimals validated with this
validator must be less than
maxValue
- the maximum value an doublevalidated with this
validator must be less than
setMaxInclusive
public void setMaxInclusive(double maxValue)
Sets the maximum value that decimals validated with this
validator are allowed to be
maxValue
- the maximum value an doublevalidated with this
validator may be
setMinExclusive
public void setMinExclusive(double minValue)
Sets the minimum value that decimals validated with this
validator must be greater than
minValue
- the minimum value an doublevalidated with this
validator must be greater than
setMinInclusive
public void setMinInclusive(double minValue)
Sets the minimum value that decimals validated with this
validator are allowed to be
minValue
- the minimum value an doublevalidated with this
validator may be
validate
public void validate(Object object)
throws ValidationException
Validates the given Object
object
- the Object to validate
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com