public class CronDayOfWeekEntry extends Object
isValid()
method refers only to what is supported by the cron editor for the day of week entry.
Valid day of week means a numerical day of week (1-7) or string representation (MON-SUN) which can be separated by a ',' to indicate a list of days. You can also specify a single day (2) followed by '#' and a number (either 1, 2, 3, or 4). This represents the first, second, third, or fourth week in the month for that day (e.g. 2#2 means the second Monday of the month). This can also be a single day (2) followed by the character 'L' which indicates the last of that day in the month (e.g. 2L means the last monday in the month).
Constructor and Description |
---|
CronDayOfWeekEntry(String dayOfWeekEntry)
Parses the given cron entry.
|
Modifier and Type | Method and Description |
---|---|
String |
getDayInMonthOrdinal()
Returns a number that represents the first, second third etc.
|
String |
getDaysAsNumbers()
Will create a comma separated list of the days' numeric values that are specifed by the cron string.
|
boolean |
isDaySpecified(String dayStr)
Will tell you if a day has been specified in the cron string.
|
boolean |
isValid()
Returns true if the editor can handle the day of week field entry.
|
public CronDayOfWeekEntry(String dayOfWeekEntry)
dayOfWeekEntry
- e.g. MON#2, 2#2 or MON,WED or 1,2,3 or 2L.public boolean isDaySpecified(String dayStr)
dayStr
- can be any of 1-7, MON-SUN, mon-sun.public String getDayInMonthOrdinal()
public String getDaysAsNumbers()
public boolean isValid()
Copyright © 2002-2019 Atlassian. All Rights Reserved.