java.lang.Object | |
↳ | com.atlassian.jira.web.component.cron.parser.CronHoursEntry |
Represents the hours part of a cron string. This class is responsible for parsing and validating the hours entry.
The isValid()
method refers only to what is supported by the cron editor for the hours entry.
Valid hours means a numerical hour (or range of the form x-y) with an optional trailing "/1", "/2" or "/3" to indicate the repeat increment in hours. This expects that numeric hours to be in 24 hour time format.
The hours and meridian attributes depend on whether this is a range entry or a "run once" entry. For ranges, use the "from" and "to" methods.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parses the given value and establishes state based on this.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the lower bound of the hour range if this entry has a range.
| |||||||||||
Returns the meridian indicator @{link #AM} or @{link #AM} for the lower bound of a range entry.
| |||||||||||
Returns the increment or step size in hours or -1 if this entry has no increment.
| |||||||||||
Returns the single hour value for this entry if it is a run once entry.
| |||||||||||
Returns the meridian indicator @{link #AM} or @{link #AM} for the entry if it is a run once entry.
| |||||||||||
Returns the upper bound of the hour range if this entry has a range.
| |||||||||||
Returns the meridian indicator @{link #AM} or @{link #AM} for the upper bound of a range entry.
| |||||||||||
Indicates if this entry has an increment.
| |||||||||||
Returns true only if the hours entry is valid with respect to the editor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Parses the given value and establishes state based on this.
cronEntry | the hours field of a cron string. |
---|
Returns the lower bound of the hour range if this entry has a range.
This end of the range is inclusive - e.g. if HoursFrom is 3PM and HoursTo is 5PM, the duration of the range is 2 hours.
Returns the meridian indicator @{link #AM} or @{link #AM} for the lower bound of a range entry.
Returns the increment or step size in hours or -1 if this entry has no increment.
Returns the single hour value for this entry if it is a run once entry.
Returns the meridian indicator @{link #AM} or @{link #AM} for the entry if it is a run once entry.
Returns the upper bound of the hour range if this entry has a range.
This end of the range is exclusive - e.g. if HoursFrom is 3PM and HoursTo is 5PM, the duration of the range is 2 hours.
Returns the meridian indicator @{link #AM} or @{link #AM} for the upper bound of a range entry.
Indicates if this entry has an increment.
Returns true only if the hours entry is valid with respect to the editor.