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 SummaryConstructors Modifier Constructor Description protectedBaseParser()
 - 
Method SummaryAll 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- 
createTimelineprotected abstract Timeline createTimeline() 
 - 
parsepublic Timeline parse(java.lang.String input) throws java.text.ParseException - Specified by:
- parsein interface- Timeline.TimelineParser
- Throws:
- java.text.ParseException
 
 - 
parsePartprotected 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
 
 - 
addToTimelineprotected void addToTimeline(Timeline tl, long start, long end) 
 
- 
 
-