toolbox.web.validation
Class BooleanField

Package class diagram package BooleanField
java.lang.Object
  extended by toolbox.web.validation.AbstractField
      extended by toolbox.web.validation.BooleanField
All Implemented Interfaces:
Field

public class BooleanField
extends AbstractField

Field implementation to validate Boolean inputs.

This implementation supports two validation properties:


Constructor Summary
BooleanField()
          Defualt constructor
 
Method Summary
 java.lang.Object validate(java.lang.String value, java.util.ResourceBundle bundle)
          Validate the given String.
 
Methods inherited from class toolbox.web.validation.AbstractField
getDefault, getName, getPattern, getProperties, getProperty, getResourceKey, getResourceString, getResourceString, isRequired, setDefault, setName, setPattern, setProperties, setRequired, setResourceKey, validateRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanField

public BooleanField()
Defualt constructor

Method Detail

validate

public java.lang.Object validate(java.lang.String value,
                                 java.util.ResourceBundle bundle)
                          throws ValidationException
Validate the given String.

Parameters:
value - String value to validate.
bundle - ResourceBundle to use for localised messages.
Returns:
Object containing a Boolean reference.
Throws:
ValidationException - if the String does not contain a valid value.