Class ConditionFactory.RegexpKeyValueRegexpCondition
java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyValueCondition
org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyValueRegexpCondition
org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.RegexpKeyValueRegexpCondition
- All Implemented Interfaces:
Condition,Condition.TagCondition
- Enclosing class:
- ConditionFactory
public static class ConditionFactory.RegexpKeyValueRegexpCondition
extends ConditionFactory.KeyValueRegexpCondition
A condition that checks that a key with the matching pattern has a value with the matching pattern.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Condition
Condition.Context, Condition.TagCondition -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyValueRegexpCondition
pattern, SUPPORTED_OPSFields inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyValueCondition
considerValAsKey, k, op, v -
Constructor Summary
ConstructorsConstructorDescriptionCreate a condition in which the key and the value need to match a given regexp -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanDetermines if this condition requires an exact key match.Methods inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyValueRegexpCondition
appliesMethods inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyValueCondition
asTag, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Condition.TagCondition
applies
-
Field Details
-
keyPattern
-
-
Constructor Details
-
RegexpKeyValueRegexpCondition
Create a condition in which the key and the value need to match a given regexp- Parameters:
k- The key regexpv- The value regexpop- The operation to use when comparing the key and the value.
-
-
Method Details
-
requiresExactKeyMatch
Description copied from class:ConditionFactory.KeyValueConditionDetermines if this condition requires an exact key match.- Overrides:
requiresExactKeyMatchin classConditionFactory.KeyValueCondition- Returns:
trueif this condition requires an exact key match.
-
matches
- Overrides:
matchesin classConditionFactory.KeyValueRegexpCondition
-