Class ConditionFactory.KeyRegexpCondition

java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.KeyRegexpCondition
All Implemented Interfaces:
Condition, Condition.TagCondition
Enclosing class:
ConditionFactory

KeyPatternCondition represents a conditions matching keys based on a pattern.
  • Field Details

    • pattern

      public final Pattern pattern
      A predicate used to match a the regexp against the key. Only used if the match type is regexp.
    • negateResult

      public final boolean negateResult
      If we should negate the result of the match.
  • Constructor Details

    • KeyRegexpCondition

      public KeyRegexpCondition(Pattern pattern, boolean negateResult)
      Creates a new KeyPatternCondition
      Parameters:
      pattern - The regular expression for matching keys.
      negateResult - If we should negate the result.
  • Method Details