org.exolab.castor.xml.validators
Class FloatValidator
- TypeValidator
public class FloatValidator
The Float Validation class. This class handles validation
for the float type.
$Revision: 1.2 $ $Date: 2003/03/03 09:57:21 $
void | setFixed(Float fixed) - Sets the fixed value the float to validate must
be equal to.
|
void | setFixed(float fixed) - Sets the fixed value the float to validate must
be equal to.
|
void | setMaxExclusive(Float maxValue) - Sets the maximum value that decimals validated with this
validator must be less than
|
void | setMaxExclusive(float maxValue) - Sets the maximum value that decimals validated with this
validator must be less than
|
void | setMaxInclusive(Float maxValue) - Sets the maximum value that decimals validated with this
validator are allowed to be
|
void | setMaxInclusive(float maxValue) - Sets the maximum value that decimals validated with this
validator are allowed to be
|
void | setMinExclusive(Float minValue) - Sets the minimum value that decimals validated with this
validator must be greater than
|
void | setMinExclusive(float minValue) - Sets the minimum value that floats validated with this
validator must be greater than
|
void | setMinInclusive(Float minValue) - Sets the minimum value that decimals validated with this
validator are allowed to be
|
void | setMinInclusive(float 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(float d, ValidationContext context)
|
FloatValidator
public FloatValidator()
Creates a new FloatValidator with no restrictions
setFixed
public void setFixed(Float fixed)
Sets the fixed value the float to validate must
be equal to.
setFixed
public void setFixed(float fixed)
Sets the fixed value the float to validate must
be equal to.
setMaxExclusive
public void setMaxExclusive(Float maxValue)
Sets the maximum value that decimals validated with this
validator must be less than
maxValue
- the maximum value an float validated with this
validator must be less than
setMaxExclusive
public void setMaxExclusive(float maxValue)
Sets the maximum value that decimals validated with this
validator must be less than
maxValue
- the maximum value an floatvalidated with this
validator must be less than
setMaxInclusive
public void setMaxInclusive(Float maxValue)
Sets the maximum value that decimals validated with this
validator are allowed to be
maxValue
- the maximum value an float validated with this
validator may be
setMaxInclusive
public void setMaxInclusive(float maxValue)
Sets the maximum value that decimals validated with this
validator are allowed to be
maxValue
- the maximum value an floatvalidated with this
validator may be
setMinExclusive
public void setMinExclusive(Float minValue)
Sets the minimum value that decimals validated with this
validator must be greater than
minValue
- the minimum value an float validated with this
validator must be greater than
setMinExclusive
public void setMinExclusive(float minValue)
Sets the minimum value that floats validated with this
validator must be greater than
minValue
- the minimum value an float validated with this
validator must be greater than
setMinInclusive
public void setMinInclusive(Float minValue)
Sets the minimum value that decimals validated with this
validator are allowed to be
minValue
- the minimum value an float validated with this
validator may be
setMinInclusive
public void setMinInclusive(float minValue)
Sets the minimum value that decimals validated with this
validator are allowed to be
minValue
- the minimum value an floatvalidated 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