List of all members.
Detailed Description
The Integer Validation class. This class handles validation for the integer type as well as all integer derived types such as positive-integer and negative-integer
- Author:
- Keith Visco
- Version:
- Revision:
- 1.2
- Date:
- 2003/03/03 09:57:21
Constructor & Destructor Documentation
org.exolab.castor.xml.validators.IntegerValidator.IntegerValidator |
( |
|
) |
|
Member Function Documentation
void org.exolab.castor.xml.validators.IntegerValidator.clearFixed |
( |
|
) |
|
void org.exolab.castor.xml.validators.IntegerValidator.clearMax |
( |
|
) |
|
void org.exolab.castor.xml.validators.IntegerValidator.clearMin |
( |
|
) |
|
Integer org.exolab.castor.xml.validators.IntegerValidator.getFixed |
( |
|
) |
|
Returns the fixed value that integers 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.
Integer org.exolab.castor.xml.validators.IntegerValidator.getMaxInclusive |
( |
|
) |
|
Returns the maximum value that integers 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.
Integer org.exolab.castor.xml.validators.IntegerValidator.getMinInclusive |
( |
|
) |
|
Returns the minimum value that integers 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.
Integer org.exolab.castor.xml.validators.IntegerValidator.getTotalDigits |
( |
|
) |
|
Returns the total number of digits that integers validated with this validator must have. A null value is returned if no total number of digits has been specified.
- Returns:
- the total number of digits
boolean org.exolab.castor.xml.validators.IntegerValidator.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.IntegerValidator.setFixed |
( |
int |
fixedValue |
) |
|
Sets the fixed value that integers validated with this validated must be equal to
- Parameters:
-
| fixedValue | the fixed value an integer validated with this validator must be equal to.
NOTE: Using Fixed values takes preceedence over using max and mins, and is really the same as setting both max-inclusive and min-inclusive to the same value |
void org.exolab.castor.xml.validators.IntegerValidator.setFixed |
( |
Integer |
fixedValue |
) |
|
void org.exolab.castor.xml.validators.IntegerValidator.setMaxExclusive |
( |
int |
maxValue |
) |
|
Sets the maximum value that integers validated with this validator must be less than
- Parameters:
-
| maxValue | the maximum value an integer validated with this validator must be less than |
void org.exolab.castor.xml.validators.IntegerValidator.setMaxInclusive |
( |
int |
maxValue |
) |
|
Sets the maximum value that integers validated with this validator are allowed to be
- Parameters:
-
| maxValue | the maximum value an integer validated with this validator may be |
void org.exolab.castor.xml.validators.IntegerValidator.setMinExclusive |
( |
int |
minValue |
) |
|
Sets the minimum value that integers validated with this validator must be greater than
- Parameters:
-
| minValue | the minimum value an integer validated with this validator must be greater than |
void org.exolab.castor.xml.validators.IntegerValidator.setMinInclusive |
( |
int |
minValue |
) |
|
Sets the minimum value that integers validated with this validator are allowed to be
- Parameters:
-
| minValue | the minimum value an integer validated with this validator may be |
void org.exolab.castor.xml.validators.IntegerValidator.setTotalDigits |
( |
int |
totalDig |
) |
|
Sets the totalDigits facet for this Integer type.
- Parameters:
-
| totalDig | the value of totalDigits (must be >0) |
void org.exolab.castor.xml.validators.IntegerValidator.validate |
( |
Object |
object |
) |
throws ValidationException |
The documentation for this class was generated from the following file: