net.sf.beanform.validator
Class WholeNumberValidator

java.lang.Object
  extended by org.apache.tapestry.form.validator.BaseValidator
      extended by net.sf.beanform.validator.AbstractNumberValidator
          extended by net.sf.beanform.validator.WholeNumberValidator
All Implemented Interfaces:
org.apache.tapestry.form.FormComponentContributor, org.apache.tapestry.form.validator.Validator

public class WholeNumberValidator
extends AbstractNumberValidator

Validates that values are whole numbers.

Author:
Daniel Gredler

Field Summary
static String NAME
           
 
Constructor Summary
WholeNumberValidator()
           
 
Method Summary
protected  String buildMessage(org.apache.tapestry.form.IFormComponent field, Locale locale)
           
protected  void parseNumber(String s)
           
 
Methods inherited from class net.sf.beanform.validator.AbstractNumberValidator
validate
 
Methods inherited from class org.apache.tapestry.form.validator.BaseValidator
accumulateProfileProperty, accumulateProperty, getAcceptsNull, getFieldTranslator, getMessage, isRequired, renderContribution, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

WholeNumberValidator

public WholeNumberValidator()
Method Detail

parseNumber

protected void parseNumber(String s)
Specified by:
parseNumber in class AbstractNumberValidator

buildMessage

protected String buildMessage(org.apache.tapestry.form.IFormComponent field,
                              Locale locale)
Specified by:
buildMessage in class AbstractNumberValidator


Copyright © 2005-2008 SourceForge.net. All Rights Reserved.