net.sf.beanform.validator
Class StringMin
java.lang.Object
org.apache.tapestry.form.validator.BaseValidator
org.apache.tapestry.form.validator.Min
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
StringMin
public StringMin()
StringMin
public StringMin(String initializer)
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.