public class ScheduleExpression
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ScheduleExpression()
Constructs a new scheduled expression with defaults populated.
|
Modifier and Type | Method and Description |
---|---|
ScheduleExpression |
dayOfMonth(int dayOfMonth)
Sets the day of month expression.
|
ScheduleExpression |
dayOfMonth(java.lang.String dayOfMonth)
Sets the day of month expression.
|
ScheduleExpression |
dayOfWeek(int dayOfWeek)
Sets the day of week expression.
|
ScheduleExpression |
dayOfWeek(java.lang.String dayOfWeek)
Sets the day of week expression.
|
ScheduleExpression |
end(java.util.Date end)
Sets the end date for this schedule.
|
java.lang.String |
getDayOfMonth()
Gets the day of month expression.
|
java.lang.String |
getDayOfWeek()
Gets the day of week expression.
|
java.util.Date |
getEnd()
Gets the end date for the schedule.
|
java.lang.String |
getHour()
Gets the hour expression.
|
java.lang.String |
getMinute()
Gets the minutes expression.
|
java.lang.String |
getMonth()
Gets the month expression.
|
java.lang.String |
getSecond()
Gets the seconds expression.
|
java.util.Date |
getStart()
Gets the start date for the schedule.
|
java.lang.String |
getTimezone()
Gets the time zone for the schedule.
|
java.lang.String |
getYear()
Gets the year expression.
|
ScheduleExpression |
hour(int hour)
Sets the hour expression.
|
ScheduleExpression |
hour(java.lang.String hour)
Sets the hour expression.
|
ScheduleExpression |
minute(int minute)
Sets the minute expression.
|
ScheduleExpression |
minute(java.lang.String minute)
Sets the minute expression.
|
ScheduleExpression |
month(int month)
Sets the month expression.
|
ScheduleExpression |
month(java.lang.String month)
Sets the month expression.
|
ScheduleExpression |
second(int second)
Sets the second expression.
|
ScheduleExpression |
second(java.lang.String second)
Sets the second expression.
|
ScheduleExpression |
start(java.util.Date start)
Sets the start date for this schedule.
|
ScheduleExpression |
timezone(java.lang.String timezoneId)
Sets the time zone for this schedule.
|
java.lang.String |
toString() |
ScheduleExpression |
year(int year)
Sets the year expression.
|
ScheduleExpression |
year(java.lang.String year)
Sets the year expression.
|
public ScheduleExpression()
public java.lang.String getSecond()
public java.lang.String getMinute()
public java.lang.String getHour()
public java.lang.String getDayOfWeek()
public java.lang.String getDayOfMonth()
public java.lang.String getMonth()
public java.lang.String getYear()
public java.lang.String getTimezone()
public java.util.Date getStart()
public java.util.Date getEnd()
public ScheduleExpression second(java.lang.String second)
second
- Second expression.public ScheduleExpression second(int second)
second
- Second expression.public ScheduleExpression minute(java.lang.String minute)
minute
- Minute expression.public ScheduleExpression minute(int minute)
minute
- Minute expression.public ScheduleExpression hour(java.lang.String hour)
hour
- Hour expression.public ScheduleExpression hour(int hour)
hour
- Hour expression.public ScheduleExpression dayOfWeek(java.lang.String dayOfWeek)
dayOfWeek
- Day of week expression.public ScheduleExpression dayOfWeek(int dayOfWeek)
dayOfWeek
- Day of week expression.public ScheduleExpression dayOfMonth(java.lang.String dayOfMonth)
dayOfMonth
- Day of month expression.public ScheduleExpression dayOfMonth(int dayOfMonth)
dayOfMonth
- Day of month expression.public ScheduleExpression month(java.lang.String month)
month
- Month expression.public ScheduleExpression month(int month)
month
- Month expression.public ScheduleExpression year(java.lang.String year)
year
- Year expression.public ScheduleExpression year(int year)
year
- Year expression.public ScheduleExpression timezone(java.lang.String timezoneId)
timezoneId
- Time zone ID of this schedule.public ScheduleExpression start(java.util.Date start)
start
- Start date of this schedule.public ScheduleExpression end(java.util.Date end)
end
- End date of this schedule.public java.lang.String toString()
toString
in class java.lang.Object