Class Lanes
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.Test.TagTest
-
- org.openstreetmap.josm.data.validation.tests.Lanes
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
public class Lanes extends Test.TagTest
Test that validateslane:
tags.- Since:
- 6592
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest
-
-
Field Summary
Fields Modifier and Type Field Description private static String[]
BLACKLIST
-
Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, isBeforeUpload, name, partialSelection, progressMonitor, stopwatch, testBeforeUpload
-
-
Constructor Summary
Constructors Constructor Description Lanes()
Constructs a newLanes
test.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(OsmPrimitive p)
Checks the tags of the given primitive.protected void
checkNumberOfLanes(OsmPrimitive p)
protected void
checkNumberOfLanesByKey(OsmPrimitive p, String lanesKey, String message)
(package private) static int
getLanesCount(String value)
boolean
isPrimitiveUsable(OsmPrimitive p)
Determines if the primitive is usable for tests.-
Methods inherited from class org.openstreetmap.josm.data.validation.Test.TagTest
includeOtherSeverityChecks, visit, visit, visit
-
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, clear, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isFixable, isResidentialArea, ok, setBeforeUpload, setPartialSelection, setShowElements, startTest, testBeforeUpload, visit
-
-
-
-
Constructor Detail
-
Lanes
public Lanes()
Constructs a newLanes
test.
-
-
Method Detail
-
getLanesCount
static int getLanesCount(String value)
-
checkNumberOfLanesByKey
protected void checkNumberOfLanesByKey(OsmPrimitive p, String lanesKey, String message)
-
checkNumberOfLanes
protected void checkNumberOfLanes(OsmPrimitive p)
-
check
public void check(OsmPrimitive p)
Description copied from class:Test.TagTest
Checks the tags of the given primitive.- Specified by:
check
in classTest.TagTest
- Parameters:
p
- The primitive to test
-
isPrimitiveUsable
public boolean isPrimitiveUsable(OsmPrimitive p)
Description copied from class:Test
Determines if the primitive is usable for tests.- Overrides:
isPrimitiveUsable
in classTest
- Parameters:
p
- The primitive- Returns:
true
if the primitive can be tested,false
otherwise
-
-