org.exolab.castor.xml.validators

Class FloatValidator

public class FloatValidator extends PatternValidator implements TypeValidator

The Float Validation class. This class handles validation for the float type.

Version: $Revision: 5951 $ $Date: 2003-03-03 02:57:21 -0700 (Mon, 03 Mar 2003) $

Author: Arnaud Blandin

Constructor Summary
FloatValidator()
Creates a new FloatValidator with no restrictions
Method Summary
voidsetFixed(float fixed)
Sets the fixed value the float to validate must be equal to.
voidsetFixed(Float fixed)
Sets the fixed value the float to validate must be equal to.
voidsetMaxExclusive(float maxValue)
Sets the maximum value that decimals validated with this validator must be less than
voidsetMaxExclusive(Float maxValue)
Sets the maximum value that decimals validated with this validator must be less than
voidsetMaxInclusive(float maxValue)
Sets the maximum value that decimals validated with this validator are allowed to be
voidsetMaxInclusive(Float maxValue)
Sets the maximum value that decimals validated with this validator are allowed to be
voidsetMinExclusive(float minValue)
Sets the minimum value that floats validated with this validator must be greater than
voidsetMinExclusive(Float minValue)
Sets the minimum value that decimals validated with this validator must be greater than
voidsetMinInclusive(float minValue)
Sets the minimum value that decimals validated with this validator are allowed to be
voidsetMinInclusive(Float minValue)
Sets the minimum value that decimals validated with this validator are allowed to be
voidvalidate(float d, ValidationContext context)
voidvalidate(Object object)
Validates the given Object
voidvalidate(Object object, ValidationContext context)
Validates the given Object

Constructor Detail

FloatValidator

public FloatValidator()
Creates a new FloatValidator with no restrictions

Method Detail

setFixed

public void setFixed(float fixed)
Sets the fixed value the float to validate must be equal to.

Parameters: fixed the fixed value

setFixed

public void setFixed(Float fixed)
Sets the fixed value the float to validate must be equal to.

Parameters: fixed the fixed value

setMaxExclusive

public void setMaxExclusive(float maxValue)
Sets the maximum value that decimals validated with this validator must be less than

Parameters: maxValue the maximum value an floatvalidated 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

Parameters: maxValue the maximum value an float validated 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

Parameters: maxValue the maximum value an floatvalidated 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

Parameters: maxValue the maximum value an float validated with this validator may be

setMinExclusive

public void setMinExclusive(float minValue)
Sets the minimum value that floats validated with this validator must be greater than

Parameters: 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 decimals validated with this validator must be greater than

Parameters: 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

Parameters: minValue the minimum value an floatvalidated 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

Parameters: minValue the minimum value an float validated with this validator may be

validate

public void validate(float d, ValidationContext context)

validate

public void validate(Object object)
Validates the given Object

Parameters: object the Object to validate

validate

public void validate(Object object, ValidationContext context)
Validates the given Object

Parameters: object the Object to validate context the ValidationContext

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com