|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.web.validation.AbstractField toolbox.web.validation.StringField toolbox.web.validation.DateField
public class DateField
Field implementation to validate Date inputs.
This implementation supports one validation property:
Constructor Summary | |
---|---|
DateField()
Defualt constructor |
Method Summary | |
---|---|
java.lang.Object |
validate(java.lang.String value,
java.util.ResourceBundle bundle)
Validate the given String as a date. |
Methods inherited from class toolbox.web.validation.AbstractField |
---|
getDefault, getName, getPattern, getProperties, getProperty, getResourceKey, getResourceString, getResourceString, isRequired, setDefault, setName, setPattern, setProperties, setRequired, setResourceKey, validateRequired |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateField()
Method Detail |
---|
public java.lang.Object validate(java.lang.String value, java.util.ResourceBundle bundle) throws ValidationException
validate
in interface Field
validate
in class StringField
value
- String value to validate.bundle
- ResourceBundle to use for localised messages.
ValidationException
- if the String does not contain a valid
value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |