public class BooleanValidator extends java.lang.Object implements TypeValidator
| Constructor and Description |
|---|
BooleanValidator()
Creates a new BooleanValidator with no restrictions
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public BooleanValidator()
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
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 TypeValidatorobject - the Object to validatecontext - the ValidationContextValidationExceptionIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com