List of all members.
Detailed Description
The Decimal Validation class. This class handles validation for the Decimal type.
TODO : pattern, enumeration
- Author:
- Arnaud Blandin
- Version:
- Revision:
- 1.4
- Date:
- 2004/10/04 08:42:40
Constructor & Destructor Documentation
org.exolab.castor.xml.validators.DecimalValidator.DecimalValidator |
( |
|
) |
|
Member Function Documentation
void org.exolab.castor.xml.validators.DecimalValidator.clearMax |
( |
|
) |
|
void org.exolab.castor.xml.validators.DecimalValidator.clearMin |
( |
|
) |
|
BigDecimal org.exolab.castor.xml.validators.DecimalValidator.getFixed |
( |
|
) |
|
Returns the fixed value that decimals validated with this validator must be equal to. A null value is returned if no fixed value has been specified.
- Returns:
- the fixed value to validate against.
BigDecimal org.exolab.castor.xml.validators.DecimalValidator.getMaxInclusive |
( |
|
) |
|
Returns the maximum value that decimals validated with this validator must be equal to or less than. A null value is returned if no maximum value has been specified.
- Returns:
- the maximum inclusive value to validate against.
BigDecimal org.exolab.castor.xml.validators.DecimalValidator.getMinInclusive |
( |
|
) |
|
Returns the minimum value that decimals validated with this validator must be equal to or greater than. A null value is returned if no minimum value has been specified.
- Returns:
- the minimum inclusive value to validate against.
boolean org.exolab.castor.xml.validators.DecimalValidator.hasFixed |
( |
|
) |
|
Returns true if a fixed value, to validate against, has been set.
- Returns:
- true if a fixed value has been set.
void org.exolab.castor.xml.validators.DecimalValidator.setFixed |
( |
BigDecimal |
fixed |
) |
|
Sets the fixed value the decimal to validate must be equal to.
- Parameters:
-
void org.exolab.castor.xml.validators.DecimalValidator.setFractionDigits |
( |
int |
fractionDig |
) |
|
Sets the fractionDigits facet for this decimal validator.
- Parameters:
-
| fractionDig | the value of fractionDigits (must be >=0) |
void org.exolab.castor.xml.validators.DecimalValidator.setMaxExclusive |
( |
BigDecimal |
maxValue |
) |
|
Sets the maximum value that decimals validated with this validator must be less than
- Parameters:
-
| maxValue | the maximum value an decimal validated with this validator must be less than |
void org.exolab.castor.xml.validators.DecimalValidator.setMaxInclusive |
( |
BigDecimal |
maxValue |
) |
|
Sets the maximum value that decimals validated with this validator are allowed to be
- Parameters:
-
| maxValue | the maximum value an decimal validated with this validator may be |
void org.exolab.castor.xml.validators.DecimalValidator.setMinExclusive |
( |
BigDecimal |
minValue |
) |
|
Sets the minimum value that decimals validated with this validator must be greater than
- Parameters:
-
| minValue | the minimum value an decimal validated with this validator must be greater than |
void org.exolab.castor.xml.validators.DecimalValidator.setMinInclusive |
( |
BigDecimal |
minValue |
) |
|
Sets the minimum value that decimals validated with this validator are allowed to be
- Parameters:
-
| minValue | the minimum value an decimal validated with this validator may be |
void org.exolab.castor.xml.validators.DecimalValidator.setTotalDigits |
( |
int |
totalDig |
) |
|
Sets the totalDigits facet for this decimal validator.
- Parameters:
-
| totalDig | the value of totalDigits (must be >0) |
void org.exolab.castor.xml.validators.DecimalValidator.validate |
( |
Object |
object |
) |
throws ValidationException |
void org.exolab.castor.xml.validators.DecimalValidator.validate |
( |
BigDecimal |
bd |
) |
throws ValidationException |
The documentation for this class was generated from the following file: