public class DateRangeSchedule extends TimeRangeSchedule
XML Snippet for DateRangeSchedule:
<DateRange impl=
"com.ibm.commerce.marketing.promotion.schedule.DateRangeSchedule">
<Start inclusive="true">01-09-2003 13:15:30</Start>
<End inclusive="true">31-12-2004 09:30:20</End>
</DateRange>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
INCLUDE_END, INCLUDE_STARTALL_WEEK_LONG, END_OF_THE_DAY, END_OF_TIME, START_OF_THE_DAY, START_OF_TIMEDAY, HALF_AN_HOUR, HOUR, MINUTE, MONTH, QUARTER, SECOND, WEEK, YEAR| Constructor and Description |
|---|
DateRangeSchedule()
Constructor
|
DateRangeSchedule(java.util.Date aStartTime,
java.util.Date anEndTime)
Constructor
|
DateRangeSchedule(java.util.Date aStartTime,
java.util.Date anEndTime,
boolean anIncludeStart,
boolean anIncludeEnd)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
calculateNextStateAndExpirationTime, clockResolution, convertPromotionDatesToUTC, currentState, currentStateValidUntil, formatStringIntoDate, getEndTime, getOverallEndDate, getOverallStartDate, getStartTime, isActive, isActiveAsOf, isIncludeEnd, isIncludeStart, setEndTime, setIncludeEnd, setIncludeStart, setStartTimepublic static final java.lang.String COPYRIGHT
public DateRangeSchedule()
public DateRangeSchedule(java.util.Date aStartTime,
java.util.Date anEndTime)
aStartTime - start date inclusiveanEndTime - end date inclusivepublic DateRangeSchedule(java.util.Date aStartTime,
java.util.Date anEndTime,
boolean anIncludeStart,
boolean anIncludeEnd)
aStartTime - start dateanEndTime - end dateanIncludeStart - whether or not include the start date & timeanIncludeEnd - whether or not include the end date & timepublic void fromXML(org.w3c.dom.Node node)
throws DeXMLizationException
XMLizablefromXML in interface XMLizablefromXML in class TimeRangeSchedulenode - The node that represents an XMLizable objectDeXMLizationException - when this process failsXMLizable.fromXML(Node)public java.lang.String toXML()
throws XMLizationException
XMLizabletoXML in interface XMLizabletoXML in class TimeRangeScheduleXMLizationException - when this process failsXMLizable.toXML()