public class FloatValidator extends PatternValidator implements TypeValidator
PatternValidator.DefaultRegExpEvaluator| Constructor and Description |
|---|
FloatValidator()
Creates a new FloatValidator with no restrictions
|
| Modifier and Type | Method and Description |
|---|---|
void |
setFixed(float fixed)
Sets the fixed value the float to validate must
be equal to.
|
void |
setFixed(java.lang.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(java.lang.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(java.lang.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 floats validated with this
validator must be greater than
|
void |
setMinExclusive(java.lang.Float minValue)
Sets the minimum value that decimals 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(java.lang.Float minValue)
Sets the minimum value that decimals validated with this
validator are allowed to be
|
void |
validate(float 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 FloatValidator()
public void setFixed(float fixed)
fixed - the fixed valuepublic void setMinExclusive(float minValue)
minValue - the minimum value an float validated with this
validator must be greater thanpublic void setMinInclusive(float minValue)
minValue - the minimum value an floatvalidated with this
validator may bepublic void setMaxExclusive(float maxValue)
maxValue - the maximum value an floatvalidated with this
validator must be less thanpublic void setMaxInclusive(float maxValue)
maxValue - the maximum value an floatvalidated with this
validator may bepublic void setFixed(java.lang.Float fixed)
fixed - the fixed valuepublic void setMinExclusive(java.lang.Float minValue)
minValue - the minimum value an float validated with this
validator must be greater thanpublic void setMinInclusive(java.lang.Float minValue)
minValue - the minimum value an float validated with this
validator may bepublic void setMaxExclusive(java.lang.Float maxValue)
maxValue - the maximum value an float validated with this
validator must be less thanpublic void setMaxInclusive(java.lang.Float maxValue)
maxValue - the maximum value an float validated with this
validator may bepublic void validate(float 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