org.apache.tapestry.form.validator
Class MinDate
java.lang.Object
org.apache.tapestry.form.validator.BaseValidator
org.apache.tapestry.form.validator.MinDate
- All Implemented Interfaces:
- FormComponentContributor, Validator
public class MinDate
- extends BaseValidator
Expects the value to be a Date
, and constrains the date to follow a particular date.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinDate
public MinDate()
MinDate
public MinDate(java.lang.String initializer)
setMinDate
public void setMinDate(java.util.Date minDate)
validate
public void validate(IFormComponent field,
ValidationMessages messages,
java.lang.Object object)
throws ValidatorException
- Description copied from interface:
Validator
- Invoked to validate input for the field. A
Translator
will have already converted the
submitted user input string into an object.
- Parameters:
field
- the form element component being validated, often used to determine the
user presentable name
for the field, used
in error messages.messages
- access to the pre-defined validation messages, in the appropriate localeobject
- the client-side representation of the field's data. May be null if the client did
not provide a value for the field (most Validators should check for null and
perform no check if null).
- Throws:
ValidatorException
- if the object violates the constraint represented by this Validator.