Public Member Functions

org.exolab.castor.xml.validators.BooleanValidator Class Reference

Inheritance diagram for org.exolab.castor.xml.validators.BooleanValidator:
org.exolab.castor.xml.TypeValidator

List of all members.

Public Member Functions

 BooleanValidator ()
void clearFixed ()
Boolean getFixed ()
boolean hasFixed ()
void setFixed (boolean fixedValue)
void setFixed (Boolean fixedValue)
void validate (boolean b) throws ValidationException
void validate (Object object) throws ValidationException
void validate (Object object, ValidationContext context) throws ValidationException

Detailed Description

The Boolean Validation class. This class handles validation for the boolean type. This will only check that a boolean has the proper fixed value.

Author:
Arnaud Blandin
Version:
Revision:
1.2
Date:
2003/03/03 09:57:21

Constructor & Destructor Documentation

org.exolab.castor.xml.validators.BooleanValidator.BooleanValidator (  ) 

Creates a new BooleanValidator with no restrictions


Member Function Documentation

void org.exolab.castor.xml.validators.BooleanValidator.clearFixed (  ) 

Clears the fixed value for this BooleanValidator

Boolean org.exolab.castor.xml.validators.BooleanValidator.getFixed (  ) 

Returns the fixed value that boolean validated with this validator must be equal to. A null value is returned if no fixed value has been specified.

Returns:
the fixed value to validate against.
boolean org.exolab.castor.xml.validators.BooleanValidator.hasFixed (  ) 

Returns true if a fixed value, to validate against, has been set.

Returns:
true if a fixed value has been set.
void org.exolab.castor.xml.validators.BooleanValidator.setFixed ( boolean  fixedValue  ) 

Sets the fixed value that boolean validated with this validator must be equal to.

Parameters:
fixedValue the fixed value a boolean validated with this validator must be equal to.
void org.exolab.castor.xml.validators.BooleanValidator.setFixed ( Boolean  fixedValue  ) 

Sets the fixed value that boolean validated with this validator must be equal to.

Parameters:
fixedValue the fixed value a boolean validated with this validator must be equal to.
void org.exolab.castor.xml.validators.BooleanValidator.validate ( Object  object,
ValidationContext  context 
) throws ValidationException

Validates the given Object

Parameters:
object the Object to validate
context the ValidationContext

Implements org.exolab.castor.xml.TypeValidator.

References org.exolab.castor.xml.validators.BooleanValidator.validate().

void org.exolab.castor.xml.validators.BooleanValidator.validate ( Object  object  )  throws ValidationException

Validates the given Object.

Parameters:
object the Object to validate

References org.exolab.castor.xml.validators.BooleanValidator.validate().

void org.exolab.castor.xml.validators.BooleanValidator.validate ( boolean  b  )  throws ValidationException

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties