org.japano.action
Class RangeValidator

java.lang.Object
  extended by org.japano.action.RangeValidator
All Implemented Interfaces:
java.io.Serializable, Validator

public class RangeValidator
extends java.lang.Object
implements Validator

Validates a number HTTP parameter to be in a given limit.

Version:
$Id: RangeValidator.java,v 1.2 2005/09/27 21:30:50 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )
See Also:
Serialized Form

Constructor Summary
RangeValidator(java.lang.String args)
           
 
Method Summary
 java.lang.String toString()
           
 java.lang.String validate(java.lang.String name, java.lang.String value)
          Validates the value and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeValidator

public RangeValidator(java.lang.String args)
Method Detail

validate

public java.lang.String validate(java.lang.String name,
                                 java.lang.String value)
Description copied from interface: Validator
Validates the value and returns it. The validator may modify the value to correct simple errors.

Specified by:
validate in interface Validator
Parameters:
name - parameter name
value - parameter value to validate.
Returns:
the value which may be modified.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object