Class DateRangeParser
java.lang.Object
com.graphhopper.reader.osm.conditional.DateRangeParser
- All Implemented Interfaces:
ConditionalValueParser
Parses a DateRange from OpenStreetMap. Currently only DateRanges that last at least one day are
supported. The Syntax is allowed inputs is described here:
http://wiki.openstreetmap.org/wiki/Key:opening_hours.
- Author:
- Robin Boldt
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.graphhopper.reader.osm.conditional.ConditionalValueParser
ConditionalValueParser.ConditionState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckCondition
(String dateRangeString) This method checks if the condition is satisfied for this parser.static Calendar
static DateRangeParser
createInstance
(String day)
-
Constructor Details
-
DateRangeParser
-
-
Method Details
-
createCalendar
-
checkCondition
public ConditionalValueParser.ConditionState checkCondition(String dateRangeString) throws ParseException Description copied from interface:ConditionalValueParser
This method checks if the condition is satisfied for this parser.- Specified by:
checkCondition
in interfaceConditionalValueParser
- Throws:
ParseException
-
createInstance
-