Class DurationHelper
- java.lang.Object
-
- org.flowable.common.engine.impl.calendar.DurationHelper
-
public class DurationHelper extends Object
Helper class for parsing ISO8601 duration format (also recurring) and computing next timer date.
-
-
Field Summary
Fields Modifier and Type Field Description protected ClockReaderclockReaderprotected static DateFormatDATE_FORMAT
-
Constructor Summary
Constructors Constructor Description DurationHelper(String expressionS, int maxIterations, ClockReader clockReader)DurationHelper(String expressionS, ClockReader clockReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Calendaradd(Calendar date, Duration duration)CalendargetCalendarAfter()CalendargetCalendarAfter(Calendar time)DategetDateAfter()CalendargetEnd()DurationgetPeriod()CalendargetStart()intgetTimes()protected booleanisDuration(String time)booleanisRepeat()BooleanisValidDate(Date newTimer)protected CalendarparseDate(String date)protected DurationparsePeriod(String period)
-
-
-
Field Detail
-
DATE_FORMAT
protected static DateFormat DATE_FORMAT
-
clockReader
protected ClockReader clockReader
-
-
Constructor Detail
-
DurationHelper
public DurationHelper(String expressionS, int maxIterations, ClockReader clockReader) throws Exception
- Throws:
Exception
-
DurationHelper
public DurationHelper(String expressionS, ClockReader clockReader) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getStart
public Calendar getStart()
-
getEnd
public Calendar getEnd()
-
getPeriod
public Duration getPeriod()
-
isRepeat
public boolean isRepeat()
-
getTimes
public int getTimes()
-
getCalendarAfter
public Calendar getCalendarAfter()
-
getDateAfter
public Date getDateAfter()
-
isDuration
protected boolean isDuration(String time)
-
-