| |
|
| java.lang.Object org.iscreen.BaseValidator org.iscreen.validators.DateFormatValidator
DateFormatValidator | public class DateFormatValidator extends BaseValidator (Code) | | This validator checks the format of the input String to verify that
it conforms to the proper format.
author: Shellman, Dan |
lenientFlag | protected boolean lenientFlag(Code) | | |
DateFormatValidator | public DateFormatValidator()(Code) | | Default constructor.
|
getDisplayFormat | public String getDisplayFormat()(Code) | | Retrieves the format of the date for display purposes.
Returns the format for the date for display purposes. |
getFormat | public String getFormat()(Code) | | Retrieves the date format that the date is validated against.
Returns the date format that the date is validated against. |
setDisplayFormat | public void setDisplayFormat(String theDisplayFormat)(Code) | | The display format, which is reported when a failure occurs. It should
be a human-readable format (defaults to MM/DD/YYYY).
Parameters: theDisplayFormat - The format to display to the user. |
setFormat | public void setFormat(String theFormat)(Code) | | The format of the date String. The format should be a valid
SimpleDateFormat pattern.
Parameters: theFormat - The SimpleDateFormat pattern. |
setLenient | public void setLenient(boolean lenient)(Code) | | The lenient flag. Passed directly to the SimpleDateFormat that is
used to validate the date String, this property defaults to false.
Parameters: lenient - The lenient flag for the SimpleDateFormat. |
|
|
|