public class WeekDaySchedule extends java.lang.Object implements Schedule, ScheduleLookAheadSupport
XML Snippet for WeekDaySchedule:
<Week impl= "com.ibm.commerce.marketing.promotion.schedule.WeekDaySchedule"> <WeekDay>Sunday</WeekDay> <WeekDay>Monday</WeekDay> <WeekDay>Tuesday</WeekDay> <WeekDay>Wednesday</WeekDay> <WeekDay>Thursday</WeekDay> <WeekDay>Friday</WeekDay> <WeekDay>Saturday</WeekDay> </Week>
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
WeekDaySchedule()
Default constructor
|
WeekDaySchedule(int[] activeWeekDays)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void | calculateNextStateAndExpirationTime()
Calculates the next state shift time and the next state
|
int | clockResolution()
Returns the constant for time resolution unit "Day"
|
boolean | currentState()
Returns the current schedule state
|
java.util.Date | currentStateValidUntil()
Returns the next status change time
|
void | fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
java.util.Date | getOverallEndDate()
Returns the overall end date, always return Schedule.END_OF_TIME
|
java.util.Date | getOverallStartDate()
Returns the overall start date, always return Schedule.START_OF_TIME
|
boolean[] | getWeekDays()
Returns the weekDays represented by an array of boolean
|
boolean | isActive()
Checks to see if a schedule is active or not
|
boolean | isActiveAsOf(java.util.Date theTime)
Checks to see if a schedule is active at a certain time
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public WeekDaySchedule()
public WeekDaySchedule(int[] activeWeekDays)
public boolean isActive()
public boolean isActiveAsOf(java.util.Date theTime)
public void fromXML(org.w3c.dom.Node node) throws DeXMLizationException
public java.lang.String toXML() throws XMLizationException
public int clockResolution()
public boolean currentState()
public java.util.Date currentStateValidUntil()
public void calculateNextStateAndExpirationTime()
public java.util.Date getOverallStartDate()
public java.util.Date getOverallEndDate()
public boolean[] getWeekDays()