public class IntegerValidator extends PatternValidator implements TypeValidator
PatternValidator.DefaultRegExpEvaluator| Constructor and Description |
|---|
IntegerValidator()
Creates a new IntegerValidator with no restrictions
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearFixed()
Clears the fixed value for this IntegerValidator
|
void |
clearMax()
Clears the maximum value for this IntegerValidator
|
void |
clearMin()
Clears the minimum value for this IntegerValidator
|
java.lang.Integer |
getFixed()
Returns the fixed value that integers validated with this
validator must be equal to.
|
java.lang.Integer |
getMaxInclusive()
Returns the maximum value that integers validated with this
validator must be equal to or less than.
|
java.lang.Integer |
getMinInclusive()
Returns the minimum value that integers validated with this
validator must be equal to or greater than.
|
java.lang.Integer |
getTotalDigits()
Returns the total number of digits that integers validated with this
validator must have.
|
boolean |
hasFixed()
Returns true if a fixed value, to validate against, has been
set.
|
void |
setFixed(int fixedValue)
Sets the fixed value that integers validated with this
validated must be equal to
|
void |
setFixed(java.lang.Integer fixedValue) |
void |
setMaxExclusive(int maxValue)
Sets the maximum value that integers validated with this
validator must be less than
|
void |
setMaxInclusive(int maxValue)
Sets the maximum value that integers validated with this
validator are allowed to be
|
void |
setMinExclusive(int minValue)
Sets the minimum value that integers validated with this
validator must be greater than
|
void |
setMinInclusive(int minValue)
Sets the minimum value that integers validated with this
validator are allowed to be
|
void |
setTotalDigits(int totalDig)
Sets the totalDigits facet for this Integer type.
|
void |
validate(int i,
ValidationContext context) |
void |
validate(java.lang.Object object)
Validates the given Object
|
void |
validate(java.lang.Object object,
ValidationContext context)
Validates the given Object
|
getPattern, hasPattern, isNillable, setNillable, setPattern, validatepublic IntegerValidator()
public void clearFixed()
public void clearMax()
public void clearMin()
public java.lang.Integer getFixed()
public java.lang.Integer getMaxInclusive()
public java.lang.Integer getMinInclusive()
public java.lang.Integer getTotalDigits()
public boolean hasFixed()
public void setFixed(int fixedValue)
fixedValue - the fixed value an integer validated with
this validator must be equal to.
public void setFixed(java.lang.Integer fixedValue)
public void setMinExclusive(int minValue)
minValue - the minimum value an integer validated with this
validator must be greater thanpublic void setMinInclusive(int minValue)
minValue - the minimum value an integer validated with this
validator may bepublic void setMaxExclusive(int maxValue)
maxValue - the maximum value an integer validated with this
validator must be less thanpublic void setMaxInclusive(int maxValue)
maxValue - the maximum value an integer validated with this
validator may bepublic void setTotalDigits(int totalDig)
totalDig - the value of totalDigits (must be >0)public void validate(int i,
ValidationContext context)
throws ValidationException
ValidationExceptionpublic void validate(java.lang.Object object)
throws ValidationException
object - the Object to validateValidationExceptionpublic void validate(java.lang.Object object,
ValidationContext context)
throws ValidationException
validate in interface TypeValidatorvalidate in class PatternValidatorobject - the Object to validatecontext - the ValidationContextValidationExceptionIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com