|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.validators.PatternValidator
org.exolab.castor.xml.validators.ByteValidator
public class ByteValidator
The Byte Validation class. This class handles validation for the byte type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.exolab.castor.xml.validators.PatternValidator |
---|
PatternValidator.DefaultRegExpEvaluator |
Constructor Summary | |
---|---|
ByteValidator()
Creates a new ByteValidator with no restrictions |
Method Summary | |
---|---|
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 |
Methods inherited from class org.exolab.castor.xml.validators.PatternValidator |
---|
getPattern, hasPattern, isNillable, setNillable, setPattern, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteValidator()
Method Detail |
---|
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
ValidationException
public void validate(java.lang.Object object) throws ValidationException
object
- the Object to validate
ValidationException
public void validate(java.lang.Object object, ValidationContext context) throws ValidationException
validate
in interface TypeValidator
validate
in class PatternValidator
object
- the Object to validatecontext
- the ValidationContext
ValidationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |