net.sf.beanform.validator
Class StringMax
java.lang.Object
org.apache.tapestry.form.validator.BaseValidator
org.apache.tapestry.form.validator.Max
net.sf.beanform.validator.StringMax
- All Implemented Interfaces:
- FormComponentContributor, Validator
public class StringMax
- extends Max
Subclass of the Max
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
StringMax
public StringMax()
StringMax
public StringMax(String initializer)
validate
public void validate(IFormComponent field,
ValidationMessages messages,
Object object)
throws ValidatorException
- Specified by:
validate
in interface Validator
- Overrides:
validate
in class Max
- Throws:
ValidatorException
setSmax
public void setSmax(double smax)
Copyright © 2006 Daniel Gredler. All Rights Reserved.