Class Timeline.BaseParser
- java.lang.Object
-
- com.inductiveautomation.ignition.common.util.Timeline.BaseParser
-
- All Implemented Interfaces:
Timeline.TimelineParser
- Direct Known Subclasses:
Timeline.CalandarParser
,Timeline.TimeOfDayParser
- Enclosing class:
- Timeline
protected abstract static class Timeline.BaseParser extends java.lang.Object implements Timeline.TimelineParser
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addToTimeline(Timeline tl, long start, long end)
protected abstract Timeline
createTimeline()
Timeline
parse(java.lang.String input)
protected abstract long
parsePart(java.lang.String pattern)
Should parse the provided sub pattern and add it to the timeline.
-
-
-
Method Detail
-
createTimeline
protected abstract Timeline createTimeline()
-
parse
public Timeline parse(java.lang.String input) throws java.text.ParseException
- Specified by:
parse
in interfaceTimeline.TimelineParser
- Throws:
java.text.ParseException
-
parsePart
protected abstract long parsePart(java.lang.String pattern) throws java.lang.Exception
Should parse the provided sub pattern and add it to the timeline. Should throw an exception if the pattern cannot be parsed for some reason.- Throws:
java.lang.Exception
-
addToTimeline
protected void addToTimeline(Timeline tl, long start, long end)
-
-