|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfc.web.forms.FieldValidator
fc.web.forms.VDate
public final class VDate
Validates a date.
| Constructor Summary | |
|---|---|
VDate(AbstractText field,
java.lang.String errorMessage)
|
|
| Method Summary | |
|---|---|
boolean |
validate(FormData fd,
javax.servlet.http.HttpServletRequest req)
Works with any field that returns a String via it's Field#getValue method. |
| Methods inherited from class fc.web.forms.FieldValidator |
|---|
getErrorMessage, getField |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VDate(AbstractText field,
java.lang.String errorMessage)
| Method Detail |
|---|
public boolean validate(FormData fd,
javax.servlet.http.HttpServletRequest req)
Field#getValue method. The date string can be any
valid string that is parseable by the java.text.DateFormat.parse(String) method (even if it's not
semantically valid). For example, the following parses OK:
02/29/1980
validate in class FieldValidatorjava.lang.ClassCastException - If the field's Field#getValue method
does not return a String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||