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 protectedBaseParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddToTimeline(Timeline tl, long start, long end)protected abstract TimelinecreateTimeline()Timelineparse(java.lang.String input)protected abstract longparsePart(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:
parsein interfaceTimeline.TimelineParser- Throws:
java.text.ParseException
-
parsePart
protected abstract long parsePart(java.lang.String pattern) throws java.lang.ExceptionShould 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)
-
-