public class ByteValidator extends PatternValidator implements TypeValidator
PatternValidator.DefaultRegExpEvaluator| Constructor and Description |
|---|
ByteValidator()
Creates a new ByteValidator 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 ByteValidator
|
void |
clearMin()
Clears the minimum value for this ByteValidator
|
java.lang.Byte |
getFixed()
Returns the fixed value that bytes validated with this
validator must be equal to.
|
java.lang.Byte |
getMaxInclusive()
Returns the maximum value that bytes validated with this
validator must be equal to or less than.
|
java.lang.Byte |
getMinInclusive()
Returns the minimum value that bytes 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(byte fixedValue)
Sets the fixed value that bytes validated with this
validated must be equal to
|
void |
setMaxExclusive(byte maxValue)
Sets the maximum value that bytes validated with this
validator must be less than
|
void |
setMaxInclusive(byte maxValue)
Sets the maximum value that bytes validated with this
validator are allowed to be
|
void |
setMinExclusive(byte minValue)
Sets the minimum value that bytes validated with this
validator must be greater than
|
void |
setMinInclusive(byte minValue)
Sets the minimum value that bytes validated with this
validator are allowed to be
|
void |
validate(byte b,
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 ByteValidator()
public void clearFixed()
public void clearMax()
public void clearMin()
public java.lang.Byte getFixed()
public java.lang.Byte getMaxInclusive()
public java.lang.Byte getMinInclusive()
public boolean hasFixed()
public void setFixed(byte fixedValue)
fixedValue - the fixed value a byte validated with
this validator must be equal to.
public void setMinExclusive(byte minValue)
minValue - the minimum value a byte validated with this
validator must be greater thanpublic void setMinInclusive(byte minValue)
minValue - the minimum value a byte validated with this
validator may bepublic void setMaxExclusive(byte maxValue)
maxValue - the maximum value a byte validated with this
validator must be less thanpublic void setMaxInclusive(byte maxValue)
maxValue - the maximum value a byte validated with this
validator may bepublic void validate(byte b,
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