|
||||||||
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
public class FloatValidator
The Float Validation class. This class handles validation for the float type.
Nested Class Summary |
---|
Nested classes/interfaces 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,
ValidationContext context)
|
void |
validate(java.lang.Object object)
Validates the given Object |
void |
validate(java.lang.Object object,
ValidationContext context)
Validates the given Object |
Methods inherited from class org.exolab.castor.xml.validators.PatternValidator |
---|
getPattern, hasPattern, isNillable, setNillable, 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, ValidationContext context) throws ValidationException
ValidationException
public void validate(java.lang.Object object) throws ValidationException
object
- the Object to validate
ValidationException
public void validate(java.lang.Object object, ValidationContext context) throws ValidationException
validate
in interface TypeValidator
validate
in class PatternValidator
object
- the Object to validatecontext
- the ValidationContext
ValidationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |