Class ICalRecurConverter
- java.lang.Object
-
- org.apache.ofbiz.workeffort.workeffort.ICalRecurConverter
-
- All Implemented Interfaces:
TemporalExpressionVisitor
public class ICalRecurConverter extends java.lang.Object implements TemporalExpressionVisitor
Temporal Expression to iCalendar recurrence converter. The conversion results (or conversion success) are unpredictable since the OFBiz Temporal Expressions are more sophisticated than iCalendar recurrences. This class attempts to make a best attempt at conversion and throwsIllegalStateException
when conversion is not possible.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ICalRecurConverter.VisitorState
-
Field Summary
Fields Modifier and Type Field Description protected net.fortuna.ical4j.model.property.DtStart
dateStart
protected static net.fortuna.ical4j.model.WeekDay[]
dayOfWeekArray
protected java.util.List<net.fortuna.ical4j.model.property.DateListProperty>
exDateList
protected java.util.List<net.fortuna.ical4j.model.property.ExRule>
exRuleList
protected java.util.List<net.fortuna.ical4j.model.property.DateListProperty>
incDateList
protected java.util.List<net.fortuna.ical4j.model.property.RRule>
incRuleList
protected ICalRecurConverter.VisitorState
state
protected java.util.Stack<ICalRecurConverter.VisitorState>
stateStack
-
Constructor Summary
Constructors Modifier Constructor Description protected
ICalRecurConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected net.fortuna.ical4j.model.Recur
consolidateRecurs(java.util.List<net.fortuna.ical4j.model.Recur> recurList)
static void
convert(TemporalExpression expr, net.fortuna.ical4j.model.PropertyList eventProps)
void
visit(TemporalExpressions.DateRange expr)
void
visit(TemporalExpressions.DayInMonth expr)
void
visit(TemporalExpressions.DayOfMonthRange expr)
void
visit(TemporalExpressions.DayOfWeekRange expr)
void
visit(TemporalExpressions.Difference expr)
void
visit(TemporalExpressions.Frequency expr)
void
visit(TemporalExpressions.HourRange expr)
void
visit(TemporalExpressions.Intersection expr)
void
visit(TemporalExpressions.MinuteRange expr)
void
visit(TemporalExpressions.MonthRange expr)
void
visit(TemporalExpressions.Null expr)
void
visit(TemporalExpressions.Substitution expr)
void
visit(TemporalExpressions.Union expr)
-
-
-
Field Detail
-
dayOfWeekArray
protected static final net.fortuna.ical4j.model.WeekDay[] dayOfWeekArray
-
dateStart
protected net.fortuna.ical4j.model.property.DtStart dateStart
-
incDateList
protected java.util.List<net.fortuna.ical4j.model.property.DateListProperty> incDateList
-
exDateList
protected java.util.List<net.fortuna.ical4j.model.property.DateListProperty> exDateList
-
incRuleList
protected java.util.List<net.fortuna.ical4j.model.property.RRule> incRuleList
-
exRuleList
protected java.util.List<net.fortuna.ical4j.model.property.ExRule> exRuleList
-
state
protected ICalRecurConverter.VisitorState state
-
stateStack
protected java.util.Stack<ICalRecurConverter.VisitorState> stateStack
-
-
Method Detail
-
convert
public static void convert(TemporalExpression expr, net.fortuna.ical4j.model.PropertyList eventProps)
-
consolidateRecurs
protected net.fortuna.ical4j.model.Recur consolidateRecurs(java.util.List<net.fortuna.ical4j.model.Recur> recurList)
-
visit
public void visit(TemporalExpressions.Difference expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.HourRange expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.Intersection expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.MinuteRange expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.Null expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.Substitution expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.DateRange expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.DayInMonth expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.DayOfMonthRange expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.DayOfWeekRange expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.Frequency expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.MonthRange expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
visit
public void visit(TemporalExpressions.Union expr)
- Specified by:
visit
in interfaceTemporalExpressionVisitor
-
-