|
||||||||
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.DoubleValidator
public class DoubleValidator
The Double Validation class. This class handles validation for the double type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.exolab.castor.xml.validators.PatternValidator |
---|
PatternValidator.DefaultRegExpEvaluator |
Constructor Summary | |
---|---|
DoubleValidator()
Creates a new DoubleValidator with no restrictions |
Method Summary | |
---|---|
void |
setFixed(double fixed)
Sets the fixed value the double to validate must be equal to. |
void |
setMaxExclusive(double maxValue)
Sets the maximum value that decimals validated with this validator must be less than |
void |
setMaxInclusive(double maxValue)
Sets the maximum value that decimals validated with this validator are allowed to be |
void |
setMinExclusive(double minValue)
Sets the minimum value that decimals validated with this validator must be greater than |
void |
setMinInclusive(double minValue)
Sets the minimum value that decimals validated with this validator are allowed to be |
void |
validate(double 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 DoubleValidator()
Method Detail |
---|
public void setFixed(double fixed)
fixed
- the fixed valuepublic void setMinExclusive(double minValue)
minValue
- the minimum value an doublevalidated with this
validator must be greater thanpublic void setMinInclusive(double minValue)
minValue
- the minimum value an doublevalidated with this
validator may bepublic void setMaxExclusive(double maxValue)
maxValue
- the maximum value an doublevalidated with this
validator must be less thanpublic void setMaxInclusive(double maxValue)
maxValue
- the maximum value an doublevalidated with this
validator may bepublic void validate(double 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 |