public class DateCheckFilter extends AbstractDateCheckFilter
AbstractDateCheckFilter
.Constructor and Description |
---|
DateCheckFilter() |
Modifier and Type | Method and Description |
---|---|
protected Calendar |
getCalendar() |
protected int |
getDayOfMonth(String dayStr)
Implement so that "first" returns
1 , second returns 2 etc. |
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
getOptional, getOptional, getPosition, getRequired, isMatchAtSentenceStart, matches
protected Calendar getCalendar()
getCalendar
in class AbstractDateCheckFilter
protected int getDayOfMonth(String dayStr)
AbstractDateCheckFilter
1
, second returns 2
etc.getDayOfMonth
in class AbstractDateCheckFilter
dayStr
- name of day of the month or abbreviation thereofprotected 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