net.sf.beanform.validator
Class AbstractNumberValidator

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

public abstract class AbstractNumberValidator
extends org.apache.tapestry.form.validator.BaseValidator

Base class for numeric validators.

Author:
Daniel Gredler

Constructor Summary
AbstractNumberValidator()
           
 
Method Summary
protected abstract  String buildMessage(org.apache.tapestry.form.IFormComponent field, Locale locale)
           
protected abstract  void parseNumber(String s)
           
 void validate(org.apache.tapestry.form.IFormComponent field, org.apache.tapestry.form.ValidationMessages messages, Object value)
           
 
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
 

Constructor Detail

AbstractNumberValidator

public AbstractNumberValidator()
Method Detail

validate

public void validate(org.apache.tapestry.form.IFormComponent field,
                     org.apache.tapestry.form.ValidationMessages messages,
                     Object value)
              throws org.apache.tapestry.valid.ValidatorException
Throws:
org.apache.tapestry.valid.ValidatorException

parseNumber

protected abstract void parseNumber(String s)

buildMessage

protected abstract String buildMessage(org.apache.tapestry.form.IFormComponent field,
                                       Locale locale)


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