|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.validators.BooleanValidator
The Boolean Validation class. This class handles validation for the boolean type. This will only check that a boolean has the proper fixed value.
| Constructor Summary | |
|---|---|
BooleanValidator()
Creates a new BooleanValidator with no restrictions |
|
| Method Summary | |
|---|---|
void |
clearFixed()
Clears the fixed value for this BooleanValidator |
java.lang.Boolean |
getFixed()
Returns the fixed value that boolean validated with this validator must be equal to. |
boolean |
hasFixed()
Returns true if a fixed value, to validate against, has been set. |
void |
setFixed(boolean fixedValue)
Sets the fixed value that boolean validated with this validator must be equal to. |
void |
setFixed(java.lang.Boolean fixedValue)
Sets the fixed value that boolean validated with this validator must be equal to. |
void |
validate(boolean b)
|
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BooleanValidator()
| Method Detail |
public void clearFixed()
public java.lang.Boolean getFixed()
public boolean hasFixed()
public void setFixed(boolean fixedValue)
fixedValue - the fixed value a boolean validated with
this validator must be equal to.public void setFixed(java.lang.Boolean fixedValue)
fixedValue - the fixed value a boolean validated with
this validator must be equal to.
public void validate(boolean b)
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 TypeValidatorobject - the Object to validatecontext - the ValidationContext
ValidationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||