Class DurationHelper
- java.lang.Object
-
- org.activiti.engine.impl.calendar.DurationHelper
-
@Internal public class DurationHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClockReaderclockReader
-
Constructor Summary
Constructors Constructor Description DurationHelper(java.lang.String expressionS, int maxIterations, ClockReader clockReader)DurationHelper(java.lang.String expressionS, ClockReader clockReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Calendaradd(java.util.Calendar date, javax.xml.datatype.Duration duration)java.util.CalendargetCalendarAfter()java.util.CalendargetCalendarAfter(java.util.Calendar time)java.util.DategetDateAfter()java.util.CalendargetEnd()javax.xml.datatype.DurationgetPeriod()java.util.CalendargetStart()intgetTimes()protected booleanisDuration(java.lang.String time)booleanisRepeat()java.lang.BooleanisValidDate(java.util.Date newTimer)protected java.util.CalendarparseDate(java.lang.String date)protected javax.xml.datatype.DurationparsePeriod(java.lang.String period)
-
-
-
Field Detail
-
clockReader
protected ClockReader clockReader
-
-
Constructor Detail
-
DurationHelper
public DurationHelper(java.lang.String expressionS, int maxIterations, ClockReader clockReader) throws java.lang.Exception- Throws:
java.lang.Exception
-
DurationHelper
public DurationHelper(java.lang.String expressionS, ClockReader clockReader) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Detail
-
getStart
public java.util.Calendar getStart()
-
getEnd
public java.util.Calendar getEnd()
-
getPeriod
public javax.xml.datatype.Duration getPeriod()
-
isRepeat
public boolean isRepeat()
-
getTimes
public int getTimes()
-
getCalendarAfter
public java.util.Calendar getCalendarAfter()
-
getCalendarAfter
public java.util.Calendar getCalendarAfter(java.util.Calendar time)
-
isValidDate
public java.lang.Boolean isValidDate(java.util.Date newTimer)
-
getDateAfter
public java.util.Date getDateAfter()
-
add
protected java.util.Calendar add(java.util.Calendar date, javax.xml.datatype.Duration duration)
-
parseDate
protected java.util.Calendar parseDate(java.lang.String date) throws java.lang.Exception- Throws:
java.lang.Exception
-
parsePeriod
protected javax.xml.datatype.Duration parsePeriod(java.lang.String period) throws java.lang.Exception- Throws:
java.lang.Exception
-
isDuration
protected boolean isDuration(java.lang.String time)
-
-