Class ConditionalKeys.ConditionalValue
java.lang.Object
org.openstreetmap.josm.data.validation.tests.ConditionalKeys.ConditionalValue
- Enclosing class:
- ConditionalKeys
A conditional value is a value for the access restriction tag that depends on conditions (time, ...)
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Collection<String>The conditions forrestrictionValuefinal StringThe value the tag should have if the condition matches -
Constructor Summary
ConstructorsConstructorDescriptionConditionalValue(String restrictionValue, Collection<String> conditions) Create a newConditionalKeys.ConditionalValue -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ConditionalKeys.ConditionalValue>Parses the condition values as string.
-
Field Details
-
restrictionValue
The value the tag should have if the condition matches -
conditions
The conditions forrestrictionValue
-
-
Constructor Details
-
ConditionalValue
Create a newConditionalKeys.ConditionalValue- Parameters:
restrictionValue- The value the tag should have if the condition matchesconditions- The conditions for that value
-
-
Method Details
-
parse
Parses the condition values as string.- Parameters:
value- value, must match<restriction-value> @ <condition>[;<restriction-value> @ <condition>]pattern- Returns:
- list of
ConditionalValues - Throws:
ConditionalKeys.ConditionalParsingException- ifvaluedoes not match expected pattern
-