public class ShortValidator extends PatternValidator implements TypeValidator
PatternValidator.DefaultRegExpEvaluator| Constructor and Description |
|---|
ShortValidator()
Creates a new ShortValidator with no restrictions
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearFixed()
Clears the fixed value for this ShortValidator
|
void |
clearMax()
Clears the maximum value for this ShortValidator
|
void |
clearMin()
Clears the minimum value for this ShortValidator
|
java.lang.Short |
getFixed()
Returns the fixed value that shorts validated with this
validator must be equal to.
|
java.lang.Short |
getMaxInclusive()
Returns the maximum value that shorts validated with this
validator must be equal to or less than.
|
java.lang.Short |
getMinInclusive()
Returns the minimum value that shorts 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(short fixedValue)
Sets the fixed value that shorts validated with this
validated must be equal to
|
void |
setMaxExclusive(short maxValue)
Sets the maximum value that shorts validated with this
validator must be less than
|
void |
setMaxInclusive(short maxValue)
Sets the maximum value that shorts validated with this
validator are allowed to be
|
void |
setMinExclusive(short minValue)
Sets the minimum value that shorts validated with this
validator must be greater than
|
void |
setMinInclusive(short minValue)
Sets the minimum value that shorts validated with this
validator are allowed to be
|
void |
validate(java.lang.Object object)
Validates the given Object
|
void |
validate(java.lang.Object object,
ValidationContext context)
Validates the given Object
|
void |
validate(short s,
ValidationContext context) |
getPattern, hasPattern, isNillable, setNillable, setPattern, validatepublic ShortValidator()
public void clearFixed()
public void clearMax()
public void clearMin()
public java.lang.Short getFixed()
public java.lang.Short getMaxInclusive()
public java.lang.Short getMinInclusive()
public boolean hasFixed()
public void setFixed(short fixedValue)
fixedValue - the fixed value a short validated with
this validator must be equal to.
public void setMinExclusive(short minValue)
minValue - the minimum value a short validated with this
validator must be greater thanpublic void setMinInclusive(short minValue)
minValue - the minimum value a short validated with this
validator may bepublic void setMaxExclusive(short maxValue)
maxValue - the maximum value a short validated with this
validator must be less thanpublic void setMaxInclusive(short maxValue)
maxValue - the maximum value a short validated with this
validator may bepublic void validate(short s,
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