public class BigIntegerValidator extends PatternValidator implements TypeValidator
PatternValidator.DefaultRegExpEvaluator| Constructor and Description |
|---|
BigIntegerValidator()
Creates a new BigIntegerValidator with no restrictions
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearFixed()
Clears the fixed value for this BigIntegerValidator
|
void |
clearMax()
Clears the maximum value for this BigIntegerValidator
|
void |
clearMin()
Clears the minimum value for this BigIntegerValidator
|
java.math.BigInteger |
getFixed()
Returns the fixed value that big integers validated with this
validator must be equal to.
|
java.math.BigInteger |
getMaxInclusive()
Returns the maximum value that bing integers validated with this
validator must be equal to or less than.
|
java.math.BigInteger |
getMinInclusive()
Returns the minimum value that big integers validated with this
validator must be equal to or greater than.
|
boolean |
hasFixed()
Returns true if a fixed value, to validate against, has been
set.
|
void |
setFixed(java.math.BigInteger fixedValue)
Sets the fixed value that big integers validated with this
validated must be equal to
|
void |
setMaxExclusive(java.math.BigInteger maxValue)
Sets the maximum value that big integers validated with this
validator must be less than
|
void |
setMaxInclusive(java.math.BigInteger maxValue)
Sets the maximum value that big integers validated with this
validator are allowed to be
|
void |
setMinExclusive(java.math.BigInteger minValue)
Sets the minimum value that big integers validated with this
validator must be greater than
|
void |
setMinInclusive(java.math.BigInteger minValue)
Sets the minimum value that big integers validated with this
validator are allowed to be
|
void |
validate(java.math.BigInteger value,
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 BigIntegerValidator()
public void clearFixed()
public void clearMax()
public void clearMin()
public java.math.BigInteger getFixed()
public java.math.BigInteger getMaxInclusive()
public java.math.BigInteger getMinInclusive()
public boolean hasFixed()
public void setFixed(java.math.BigInteger fixedValue)
fixedValue - the fixed value that a long validated with
this validator must be equal to.
public void setMinExclusive(java.math.BigInteger minValue)
minValue - the minimum value that a big integer validated with this
validator must be greater thanpublic void setMinInclusive(java.math.BigInteger minValue)
minValue - the minimum value that a big integer validated with this
validator may bepublic void setMaxExclusive(java.math.BigInteger maxValue)
maxValue - the maximum value that a big integer validated
with this validator must be less thanpublic void setMaxInclusive(java.math.BigInteger maxValue)
maxValue - the maximum value that a big integer validated
with this validator may bepublic void validate(java.math.BigInteger value,
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