public class DurationHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected ClockReader |
clockReader |
Constructor and Description |
---|
DurationHelper(String expressionS,
ClockReader clockReader) |
DurationHelper(String expressionS,
int maxIterations,
ClockReader clockReader) |
Modifier and Type | Method and Description |
---|---|
protected Calendar |
add(Calendar date,
Duration duration) |
Calendar |
getCalendarAfter() |
Calendar |
getCalendarAfter(Calendar time) |
Date |
getDateAfter() |
Calendar |
getEnd() |
Duration |
getPeriod() |
Calendar |
getStart() |
int |
getTimes() |
protected boolean |
isDuration(String time) |
boolean |
isRepeat() |
Boolean |
isValidDate(Date newTimer) |
protected Calendar |
parseDate(String date) |
protected Duration |
parsePeriod(String period) |
protected ClockReader clockReader
public DurationHelper(String expressionS, int maxIterations, ClockReader clockReader) throws Exception
Exception
public DurationHelper(String expressionS, ClockReader clockReader) throws Exception
Exception
public Calendar getStart()
public Calendar getEnd()
public Duration getPeriod()
public boolean isRepeat()
public int getTimes()
public Calendar getCalendarAfter()
public Date getDateAfter()
protected boolean isDuration(String time)
Copyright © 2015 Alfresco. All rights reserved.