net.sf.echobinding.validation
Class NumberValidator

java.lang.Object
  extended by net.sf.echobinding.validation.NumberValidator
All Implemented Interfaces:
Validator

public class NumberValidator
extends java.lang.Object
implements Validator

A number validator for validating the format of numbers.


Constructor Summary
NumberValidator(java.lang.String pattern)
          Creates a number validator.
 
Method Summary
 ValidationReport validate(java.lang.Object bean, java.lang.Object input)
          Validates the input against the number format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberValidator

public NumberValidator(java.lang.String pattern)
Creates a number validator.

Parameters:
pattern - - the number pattern to use
Method Detail

validate

public ValidationReport validate(java.lang.Object bean,
                                 java.lang.Object input)
Validates the input against the number format.

Specified by:
validate in interface Validator
Parameters:
input - - the user input


Copyright © 2007. All Rights Reserved.