org.formproc.example
Class IsIntRule

java.lang.Object
  |
  +--org.formproc.validation.AbstractRule
        |
        +--org.formproc.example.IsIntRule
All Implemented Interfaces:
Rule

public class IsIntRule
extends AbstractRule

This validates that the given value is an integer.

Author:
Anthony Eden

Constructor Summary
IsIntRule()
           
 
Method Summary
 RuleResult validate(java.lang.Object value, java.util.Locale locale)
          Validate that the value is an integer
 
Methods inherited from class org.formproc.validation.AbstractRule
configure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsIntRule

public IsIntRule()
Method Detail

validate

public RuleResult validate(java.lang.Object value,
                           java.util.Locale locale)
Validate that the value is an integer

Parameters:
value - The value
locale - The Locale
Returns:
The RuleResult


Copyright (c) 2001-2003 Anthony Eden. All Rights Reserved.