public class ScheduleExpression
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
dayOfMonth_ |
private java.lang.String |
dayOfWeek_ |
private java.util.Date |
end_ |
private java.lang.String |
hour_ |
private java.lang.String |
minute_ |
private java.lang.String |
month_ |
private java.lang.String |
second_ |
private static long |
serialVersionUID |
private java.util.Date |
start_ |
private java.lang.String |
timezoneID_ |
private java.lang.String |
year_ |
Constructor and Description |
---|
ScheduleExpression()
Create a schedule with the default values.
|
Modifier and Type | Method and Description |
---|---|
ScheduleExpression |
dayOfMonth(int d)
Set the day of the month attribute.
|
ScheduleExpression |
dayOfMonth(java.lang.String d)
Set the day of the month attribute.
|
ScheduleExpression |
dayOfWeek(int d)
Set the day of the week attribute.
|
ScheduleExpression |
dayOfWeek(java.lang.String d)
Set the day of the week attribute.
|
ScheduleExpression |
end(java.util.Date e)
Set the end date.
|
java.lang.String |
getDayOfMonth()
Return the value of the day of the month attribute.
|
java.lang.String |
getDayOfWeek()
Return the value of the day of the week attribute.
|
java.util.Date |
getEnd()
Return the end date, if set; otherwise null.
|
java.lang.String |
getHour()
Return the value of the hour attribute.
|
java.lang.String |
getMinute()
Return the value of the minute attribute.
|
java.lang.String |
getMonth()
Return the value of the month attribute.
|
java.lang.String |
getSecond()
Return the value of the second attribute.
|
java.util.Date |
getStart()
Return the start date, if set; otherwise null.
|
java.lang.String |
getTimezone()
Return the timezone, if set; otherwise null.
|
java.lang.String |
getYear()
Return the value of the year attribute.
|
ScheduleExpression |
hour(int h)
Set the hour attribute.
|
ScheduleExpression |
hour(java.lang.String h)
Set the hour attribute.
|
ScheduleExpression |
minute(int m)
Set the minute attribute.
|
ScheduleExpression |
minute(java.lang.String m)
Set the minute attribute.
|
ScheduleExpression |
month(int m)
Set the month attribute.
|
ScheduleExpression |
month(java.lang.String m)
Set the month attribute.
|
ScheduleExpression |
second(int s)
Set the second attribute.
|
ScheduleExpression |
second(java.lang.String s)
Set the second attribute.
|
ScheduleExpression |
start(java.util.Date s)
Set the start date.
|
ScheduleExpression |
timezone(java.lang.String timezoneID)
Set the timezone.
|
java.lang.String |
toString() |
ScheduleExpression |
year(int y)
Set the year attribute.
|
ScheduleExpression |
year(java.lang.String y)
Set the year attribute.
|
private static final long serialVersionUID
private java.lang.String second_
private java.lang.String minute_
private java.lang.String hour_
private java.lang.String dayOfMonth_
private java.lang.String month_
private java.lang.String dayOfWeek_
private java.lang.String year_
private java.lang.String timezoneID_
private java.util.Date start_
private java.util.Date end_
public ScheduleExpression()
public ScheduleExpression second(java.lang.String s)
s
- the attribute value as a String
public ScheduleExpression second(int s)
s
- the attribute value as an int
, if the value
is a simple integer valuepublic java.lang.String getSecond()
public ScheduleExpression minute(java.lang.String m)
m
- the attribute value as a String
public ScheduleExpression minute(int m)
m
- the attribute value as an int
, if the value
is a simple integer valuepublic java.lang.String getMinute()
public ScheduleExpression hour(java.lang.String h)
h
- the attribute value as a String
public ScheduleExpression hour(int h)
h
- the attribute value as an int
, if the value
is a simple integer valuepublic java.lang.String getHour()
public ScheduleExpression dayOfMonth(java.lang.String d)
d
- the attribute value as a String
public ScheduleExpression dayOfMonth(int d)
d
- the attribute value as an int
, if the value
is a simple integer valuepublic java.lang.String getDayOfMonth()
public ScheduleExpression month(java.lang.String m)
m
- the attribute value as a String
public ScheduleExpression month(int m)
m
- the attribute value as an int
, if the value
is a simple integer valuepublic java.lang.String getMonth()
public ScheduleExpression dayOfWeek(java.lang.String d)
d
- the attribute value as a String
public ScheduleExpression dayOfWeek(int d)
d
- the attribute value as an int
, if the value
is a simple integer valuepublic java.lang.String getDayOfWeek()
public ScheduleExpression year(java.lang.String y)
y
- the attribute value as a String
public ScheduleExpression year(int y)
y
- the attribute value as an int
, if the value
is a simple integer valuepublic java.lang.String getYear()
public ScheduleExpression timezone(java.lang.String timezoneID)
timezoneID
- the Time zone specified as an ID Stringpublic java.lang.String getTimezone()
public ScheduleExpression start(java.util.Date s)
s
- the start datepublic java.util.Date getStart()
public ScheduleExpression end(java.util.Date e)
e
- the end datepublic java.util.Date getEnd()
public java.lang.String toString()
toString
in class java.lang.Object