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:
- org.apache.tapestry.form.FormComponentContributor, org.apache.tapestry.form.validator.Validator
public class StringMin
- extends org.apache.tapestry.form.validator.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
Method Summary |
void |
setSmin(double smin)
|
void |
validate(org.apache.tapestry.form.IFormComponent field,
org.apache.tapestry.form.ValidationMessages messages,
Object object)
|
Methods inherited from class org.apache.tapestry.form.validator.Min |
getMin, renderContribution, setMin |
Methods inherited from class org.apache.tapestry.form.validator.BaseValidator |
accumulateProfileProperty, accumulateProperty, getAcceptsNull, getFieldTranslator, getMessage, isRequired, setMessage |
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(org.apache.tapestry.form.IFormComponent field,
org.apache.tapestry.form.ValidationMessages messages,
Object object)
throws org.apache.tapestry.valid.ValidatorException
- Specified by:
validate
in interface org.apache.tapestry.form.validator.Validator
- Overrides:
validate
in class org.apache.tapestry.form.validator.Min
- Throws:
org.apache.tapestry.valid.ValidatorException
setSmin
public void setSmin(double smin)
Copyright © 2005-2008 SourceForge.net. All Rights Reserved.