public class DateCheckFilter extends AbstractDateCheckFilter
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 localizedMonth)
Implement so that January returns
1 , February 2 etc. |
acceptRuleMatch, getDayOfMonth
getOptional, getOptional, getPosition, getRequired, isMatchAtSentenceStart, matches
protected int getMonth(String localizedMonth)
AbstractDateCheckFilter
1
, February 2
etc.getMonth
in class AbstractDateCheckFilter
localizedMonth
- name of a month or abbreviation thereofprotected 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