|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.web.component.cron.parser.CronHoursEntry
public class 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.
Constructor Summary | |
---|---|
CronHoursEntry(String cronEntry)
Parses the given value and establishes state based on this. |
Method Summary | |
---|---|
int |
getFrom()
Returns the lower bound of the hour range if this entry has a range. |
String |
getFromMeridian()
Returns the meridian indicator @{link #AM} or @{link #AM} for the lower bound of a range entry. |
int |
getIncrement()
Returns the increment or step size in hours or -1 if this entry has no increment. |
int |
getRunOnce()
Returns the single hour value for this entry if it is a run once entry. |
String |
getRunOnceMeridian()
Returns the meridian indicator @{link #AM} or @{link #AM} for the entry if it is a run once entry. |
int |
getTo()
Returns the upper bound of the hour range if this entry has a range. |
String |
getToMeridian()
Returns the meridian indicator @{link #AM} or @{link #AM} for the upper bound of a range entry. |
boolean |
hasIncrement()
Indicates if this entry has an increment. |
boolean |
isRunOnce()
|
boolean |
isValid()
Returns true only if the hours entry is valid with respect to the editor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CronHoursEntry(String cronEntry)
cronEntry
- the hours field of a cron string.Method Detail |
---|
public boolean isValid()
public int getFrom()
public int getTo()
public String getFromMeridian()
public String getToMeridian()
public int getRunOnce()
public String getRunOnceMeridian()
public int getIncrement()
public boolean hasIncrement()
public boolean isRunOnce()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |