public class DateCheckFilter extends AbstractDateCheckFilter
Constructor and Description |
---|
DateCheckFilter() |
Modifier and Type | Method and Description |
---|---|
protected Calendar |
getCalendar() |
protected String |
getDayOfWeek(Calendar date)
Get the localized name of the day of week for the given date.
|
protected int |
getDayOfWeek(String dayStr)
Implement so that Sunday returns
1 , Monday 2 etc. |
protected int |
getMonth(String monthStr)
Implement so that January returns
1 , February 2 etc. |
acceptRuleMatch, getDayOfMonth
getOptional, getOptional, getPosition, getRequired, isMatchAtSentenceStart, matches
protected Calendar getCalendar()
getCalendar
in class AbstractDateCheckFilter
protected int getDayOfWeek(String dayStr)
AbstractDateCheckFilter
1
, Monday 2
etc.getDayOfWeek
in class AbstractDateCheckFilter
dayStr
- a week day name or abbreviation thereofprotected String getDayOfWeek(Calendar date)
AbstractDateCheckFilter
getDayOfWeek
in class AbstractDateCheckFilter
protected int getMonth(String monthStr)
AbstractDateCheckFilter
1
, February 2
etc.getMonth
in class AbstractDateCheckFilter
monthStr
- name of a month or abbreviation thereof