|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.validators.PatternValidator
org.exolab.castor.xml.validators.FloatValidator
The Float Validation class. This class handles validation for the float type.
Nested Class Summary |
Nested classes inherited from class org.exolab.castor.xml.validators.PatternValidator |
PatternValidator.DefaultRegExpEvaluator |
Constructor Summary | |
FloatValidator()
Creates a new FloatValidator with no restrictions |
Method Summary | |
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)
|
void |
validate(java.lang.Object object)
Validates the given Object |
Methods inherited from class org.exolab.castor.xml.validators.PatternValidator |
getPattern, hasPattern, setPattern, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FloatValidator()
Method Detail |
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) throws ValidationException
ValidationException
public void validate(java.lang.Object object) throws ValidationException
validate
in interface TypeValidator
validate
in class PatternValidator
object
- the Object to validate
ValidationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |