net.sf.beanform.validator
Class StringMin

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

public class StringMin
extends Min

Subclass of the Min validator that doesn't barf all over the place if it's handed a string instead of a number. Apparently Tapestry normally does some automatic type conversions depending on a value's setter and getter, but our setters and getters are for generic objects.

Author:
Daniel Gredler

Field Summary
static String NAME
           
 
Constructor Summary
StringMin()
           
StringMin(String initializer)
           
 
Method Summary
 void setSmin(double smin)
           
 void validate(IFormComponent field, ValidationMessages messages, Object object)
           
 
Methods inherited from class org.apache.tapestry.form.validator.Min
renderContribution, setMin
 
Methods inherited from class org.apache.tapestry.form.validator.BaseValidator
getAcceptsNull, getMessage, isRequired, 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

StringMin

public StringMin()

StringMin

public StringMin(String initializer)
Method Detail

validate

public void validate(IFormComponent field,
                     ValidationMessages messages,
                     Object object)
              throws ValidatorException
Specified by:
validate in interface Validator
Overrides:
validate in class Min
Throws:
ValidatorException

setSmin

public void setSmin(double smin)


Copyright © 2006 Daniel Gredler. All Rights Reserved.