org.exolab.castor.xml.validators
public class BooleanValidator extends Object implements TypeValidator
Version: $Revision: 1.2 $ $Date: 2003/03/03 09:57:21 $
| Constructor Summary | |
|---|---|
| BooleanValidator()
Creates a new BooleanValidator with no restrictions
| |
| Method Summary | |
|---|---|
| void | clearFixed()
Clears the fixed value for this BooleanValidator
|
| 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(Boolean fixedValue)
Sets the fixed value that boolean validated with this
validator must be equal to. |
| void | validate(boolean b) |
| void | validate(Object object)
Validates the given Object.
|
| void | validate(Object object, ValidationContext context)
Validates the given Object
|
Returns: the fixed value to validate against.
Returns: true if a fixed value has been set.
Parameters: fixedValue the fixed value a boolean validated with this validator must be equal to.
Parameters: fixedValue the fixed value a boolean validated with this validator must be equal to.
Parameters: object the Object to validate
Parameters: object the Object to validate context the ValidationContext