Class MapCSSRuleIndex.MapCSSKeyRules
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSRuleIndex.MapCSSKeyRules
-
- Enclosing class:
- MapCSSRuleIndex
private static final class MapCSSRuleIndex.MapCSSKeyRules extends java.lang.Object
This is a map of all rules that are only applied if the primitive has a given key (and possibly value)
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.BitSet
generalRules
The indexes of rules that might be applied if this tag is present and the value has no special handling.(package private) java.util.Map<java.lang.String,java.util.BitSet>
specialRules
A map that stores the indexes of rules that might be applied if the key=value pair is present on this primitive.
-
Constructor Summary
Constructors Modifier Constructor Description private
MapCSSKeyRules()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addForKey(int ruleIndex)
void
addForKeyAndValue(java.lang.String value, int ruleIndex)
java.util.BitSet
get(java.lang.String value)
-
-
-
Field Detail
-
generalRules
java.util.BitSet generalRules
The indexes of rules that might be applied if this tag is present and the value has no special handling.
-
specialRules
java.util.Map<java.lang.String,java.util.BitSet> specialRules
A map that stores the indexes of rules that might be applied if the key=value pair is present on this primitive. This includes all key=* rules.
-
-
Constructor Detail
-
MapCSSKeyRules
private MapCSSKeyRules()
-
-
Method Detail
-
addForKey
public void addForKey(int ruleIndex)
-
addForKeyAndValue
public void addForKeyAndValue(java.lang.String value, int ruleIndex)
-
get
public java.util.BitSet get(java.lang.String value)
-
-