final class MapCSSTagCheckerIndex extends java.lang.Object
MapCSSTagChecker
to store indexes of rulesModifier and Type | Field and Description |
---|---|
(package private) static boolean |
ALL_TESTS |
(package private) MapCSSStyleSource.MapCSSRuleIndex |
multipolygonRules
Rules for multipolygon relations
|
(package private) MapCSSStyleSource.MapCSSRuleIndex |
nodeRules
Rules for nodes
|
(package private) static boolean |
ONLY_SELECTED_TESTS |
(package private) MapCSSStyleSource.MapCSSRuleIndex |
relationRules
Rules for relations that are not multipolygon relations
|
(package private) java.util.Map<MapCSSRule,MapCSSTagChecker.TagCheck> |
ruleToCheckMap |
(package private) MapCSSStyleSource.MapCSSRuleIndex |
wayNoAreaRules
Rules for ways with tag area=no
|
(package private) MapCSSStyleSource.MapCSSRuleIndex |
wayRules
Rules for ways without tag area=no
|
Constructor and Description |
---|
MapCSSTagCheckerIndex(MultiMap<java.lang.String,MapCSSTagChecker.TagCheck> checks,
boolean includeOtherSeverity,
boolean allTests) |
Modifier and Type | Method and Description |
---|---|
private void |
buildIndex(MultiMap<java.lang.String,MapCSSTagChecker.TagCheck> checks,
boolean includeOtherSeverity,
boolean allTests) |
MapCSSStyleSource.MapCSSRuleIndex |
get(OsmPrimitive p)
Get the index of rules for the given primitive.
|
MapCSSTagChecker.TagCheck |
getCheck(MapCSSRule rule)
return the TagCheck for which the given indexed rule was created.
|
final java.util.Map<MapCSSRule,MapCSSTagChecker.TagCheck> ruleToCheckMap
static final boolean ALL_TESTS
static final boolean ONLY_SELECTED_TESTS
final MapCSSStyleSource.MapCSSRuleIndex nodeRules
final MapCSSStyleSource.MapCSSRuleIndex wayRules
final MapCSSStyleSource.MapCSSRuleIndex wayNoAreaRules
final MapCSSStyleSource.MapCSSRuleIndex relationRules
final MapCSSStyleSource.MapCSSRuleIndex multipolygonRules
MapCSSTagCheckerIndex(MultiMap<java.lang.String,MapCSSTagChecker.TagCheck> checks, boolean includeOtherSeverity, boolean allTests)
private void buildIndex(MultiMap<java.lang.String,MapCSSTagChecker.TagCheck> checks, boolean includeOtherSeverity, boolean allTests)
public MapCSSStyleSource.MapCSSRuleIndex get(OsmPrimitive p)
p
- the primitvepublic MapCSSTagChecker.TagCheck getCheck(MapCSSRule rule)
rule
- an indexed rule