Class CalendarDateElement
java.lang.Object
com.appiancorp.suiteapi.process.calendar.CalendarElement
com.appiancorp.suiteapi.process.calendar.CalendarDateElement
- All Implemented Interfaces:
com.appiancorp.core.expr.calendar.PortableCalendarDateElement
,com.appiancorp.core.expr.calendar.PortableCalendarElement
public class CalendarDateElement
extends CalendarElement
implements com.appiancorp.core.expr.calendar.PortableCalendarDateElement
The
CalendarDateElement
is similar to the
CalendarElement
but it has
an additional field which specifies the specific day to which this element
is applied.-
Constructor Summary
ConstructorDescriptionDefault constructor for aCalendarDateElement
.CalendarDateElement
(Date date_, int minuteOfDay_, int lengthInMinutes_) CalendarDateElement
constructor which initializes the date of this element as well as the starting minute and duration in minutes.CalendarDateElement
(Date date_, CalendarElement tempElement_) CalendarDateElement
constructor which initializes the date of this element as well as the starting minute and duration in minutes. -
Method Summary
Methods inherited from class com.appiancorp.suiteapi.process.calendar.CalendarElement
equals, getLengthInMinutes, getMinuteOfDay, hashCode, minuteString, setLengthInMinutes, setMinuteOfDay, startEndToString, stringToCalendarElement
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.appiancorp.core.expr.calendar.PortableCalendarElement
getLengthInMinutes, getMinuteOfDay
-
Constructor Details
-
CalendarDateElement
public CalendarDateElement()Default constructor for aCalendarDateElement
. -
CalendarDateElement
CalendarDateElement
constructor which initializes the date of this element as well as the starting minute and duration in minutes.- Parameters:
date_
- The date to which this element applies.minuteOfDay_
- The start minute for this start-end pair.lengthInMinutes_
- The duration in minutes for this start-end pair.
-
CalendarDateElement
CalendarDateElement
constructor which initializes the date of this element as well as the starting minute and duration in minutes. The starting minute and duration should be provided in tempElement_- Parameters:
date_
- The date to which this element applies.tempElement_
- An instance ofCalendarElement
containing starting minute and the duration.
-
-
Method Details
-
getDate
Get the date to which thisCalendarDateElement
is applied.- Specified by:
getDate
in interfacecom.appiancorp.core.expr.calendar.PortableCalendarDateElement
- Returns:
- The date to which this element is applied.
- See Also:
-
setDate
Set the date to which thisCalendarDateElement
is applied.- Parameters:
date_
- The date to which this element is applied to set.- See Also:
-
toString
Simple toString method. The format of this is allowed to change.- Overrides:
toString
in classCalendarElement
-