public class RelativeDateRange extends AbstractDateRange implements DateRangeExpression
Implementation of DateRange for relative range of dates.
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_RANGE_REGEXP |
static int |
DEFAULT_WEEK_START_DAY |
static String |
PROPERTIES_FILE_NAME |
static String |
WEEK_START_DAY_KEY |
expression, timeZone| Constructor and Description |
|---|
RelativeDateRange(String expression) |
RelativeDateRange(String expression,
TimeZone timeZone,
Integer weekStart) |
| Modifier and Type | Method and Description |
|---|---|
protected Calendar |
getCalendar() |
protected Date |
getCurrentDate() |
Date |
getEnd() |
String |
getExpression()
Returns string which represents date range expression.
|
protected Pattern |
getPattern() |
protected Properties |
getProperties() |
protected String |
getPropertiesFileName() |
Date |
getStart() |
protected int |
getWeekStart() |
protected void |
setProperties(Properties props) |
protected void |
validateExpression(String expression) |
public static final String DATE_RANGE_REGEXP
public static final int DEFAULT_WEEK_START_DAY
public static final String WEEK_START_DAY_KEY
public static final String PROPERTIES_FILE_NAME
public RelativeDateRange(String expression)
protected Pattern getPattern()
protected void validateExpression(String expression) throws InvalidDateRangeExpressionException
validateExpression in class AbstractDateRangeInvalidDateRangeExpressionExceptionpublic String getExpression()
DateRangeExpressiongetExpression in interface DateRangeExpressionprotected int getWeekStart()
protected String getPropertiesFileName()
protected Date getCurrentDate()
protected void setProperties(Properties props)
protected Properties getProperties()
protected Calendar getCalendar()
Copyright © 2017. All rights reserved.