public class ScheduleData extends Object
Constructor and Description |
---|
ScheduleData() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getEndTimestamp()
Get the end timestamp.
|
ScheduleFollow |
getFollow()
Get the followup definition.
|
ScheduleInterval |
getInterval()
Get the interval definition.
|
int |
getStartTimestamp()
Get the start timestamp.
|
ScheduleType |
getType()
Get the schedule type.
|
boolean |
isValid()
Check if the schedule data is valid.
|
ScheduleData |
setEndTimestamp(int endTimestamp)
Set the end timestamp.
|
ScheduleData |
setFollow(ScheduleFollow follow)
Set the followup definition.
|
ScheduleData |
setInterval(ScheduleInterval interval)
Set the interval definition.
|
ScheduleData |
setStartTimestamp(int startTimestamp)
Set the start timestamp.
|
ScheduleData |
setType(ScheduleType type)
Set the schedule type.
|
String |
toString() |
public ScheduleType getType()
public ScheduleData setType(ScheduleType type)
type
- The schedule type.public int getStartTimestamp()
public ScheduleData setStartTimestamp(int startTimestamp)
startTimestamp
- The start timestamp.public int getEndTimestamp()
public ScheduleData setEndTimestamp(int endTimestamp)
endTimestamp
- The end timestamp.public ScheduleInterval getInterval()
public ScheduleData setInterval(ScheduleInterval interval)
interval
- The interval definition.public ScheduleFollow getFollow()
public ScheduleData setFollow(ScheduleFollow follow)
follow
- The followup definition.public boolean isValid()
Validation depends on the schedule type
:
once
: the startTimestamp
must be greater than zerointerval
: the #getInterval() interval
must be set and be validfollowup
: the follow up
must be set and contain at least one IDmanual
: always validCopyright © 2024 Gentics Software. All rights reserved.