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_START
ALL_WEEK_LONG, END_OF_THE_DAY, END_OF_TIME, START_OF_THE_DAY, START_OF_TIME
DAY, 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, setStartTime
public 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
XMLizable
fromXML
in interface XMLizable
fromXML
in class TimeRangeSchedule
node
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(Node)
public java.lang.String toXML() throws XMLizationException
XMLizable
toXML
in interface XMLizable
toXML
in class TimeRangeSchedule
XMLizationException
- when this process failsXMLizable.toXML()