public class DayOfMonth extends IntegerBasedExpression
ScheduleExpression.getDayOfMonth()
A DayOfMonth can hold an Integer or a String as its value.
value. The various ways in which a
DayOfMonth value can be represented are:
| Modifier and Type | Field and Description |
|---|---|
static Integer |
MAX_DAY_OF_MONTH
The maximum allowed value for the
DayOfMonth |
static Integer |
MIN_DAY_OF_MONTH
The minimum allowed value for the
DayOfMonth |
absoluteValues, origValue, relativeValues, scheduleExpressionType| Constructor and Description |
|---|
DayOfMonth(String value)
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accepts(ScheduleExpressionType scheduleExprType) |
protected void |
assertValid(Integer value) |
Integer |
getFirstMatch(Calendar cal) |
protected Integer |
getMaxValue()
Returns the maximum allowed value for a
DayOfMonth |
protected Integer |
getMinValue()
Returns the minimum allowed value for a
DayOfMonth |
Integer |
getNextMatch(Calendar currentCal) |
boolean |
isRelativeValue(String value) |
protected Integer |
parseInt(String alias) |
processIncrement, processListItem, processListValue, processRangeValue, processSingleValuepublic static final Integer MAX_DAY_OF_MONTH
DayOfMonthpublic static final Integer MIN_DAY_OF_MONTH
DayOfMonthpublic DayOfMonth(String value)
DayOfMonth by parsing the passed String value
Valid values are of type ScheduleExpressionType.WILDCARD, ScheduleExpressionType.RANGE,
ScheduleExpressionType.LIST or ScheduleExpressionType.SINGLE_VALUE
value - The value to be parsedIllegalArgumentException - If the passed value is neither a ScheduleExpressionType.WILDCARD,
ScheduleExpressionType.RANGE, ScheduleExpressionType.LIST,
nor ScheduleExpressionType.SINGLE_VALUE.protected Integer getMaxValue()
DayOfMonthgetMaxValue in class IntegerBasedExpressionMAX_DAY_OF_MONTHprotected Integer getMinValue()
DayOfMonthgetMinValue in class IntegerBasedExpressionMIN_DAY_OF_MONTHprotected void assertValid(Integer value) throws IllegalArgumentException
assertValid in class IntegerBasedExpressionIllegalArgumentExceptionpublic boolean isRelativeValue(String value)
isRelativeValue in class IntegerBasedExpressionprotected boolean accepts(ScheduleExpressionType scheduleExprType)
accepts in class IntegerBasedExpressionprotected Integer parseInt(String alias)
parseInt in class IntegerBasedExpressionCopyright © 2021 JBoss by Red Hat. All rights reserved.