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, processSingleValue
public static final Integer MAX_DAY_OF_MONTH
DayOfMonth
public static final Integer MIN_DAY_OF_MONTH
DayOfMonth
public 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()
DayOfMonth
getMaxValue
in class IntegerBasedExpression
MAX_DAY_OF_MONTH
protected Integer getMinValue()
DayOfMonth
getMinValue
in class IntegerBasedExpression
MIN_DAY_OF_MONTH
protected void assertValid(Integer value) throws IllegalArgumentException
assertValid
in class IntegerBasedExpression
IllegalArgumentException
public boolean isRelativeValue(String value)
isRelativeValue
in class IntegerBasedExpression
protected boolean accepts(ScheduleExpressionType scheduleExprType)
accepts
in class IntegerBasedExpression
protected Integer parseInt(String alias)
parseInt
in class IntegerBasedExpression
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.