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 java.lang.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 newLanestest.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(OsmPrimitive p)Checks the tags of the given primitive.protected voidcheckNumberOfLanes(OsmPrimitive p)protected voidcheckNumberOfLanesByKey(OsmPrimitive p, java.lang.String lanesKey, java.lang.String message)(package private) static intgetLanesCount(java.lang.String value)booleanisPrimitiveUsable(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, removeIrrelevantErrors, setBeforeUpload, setPartialSelection, setShowElements, startTest, testBeforeUpload, visit
-
-
-
-
Field Detail
-
BLACKLIST
private static final java.lang.String[] BLACKLIST
-
-
Constructor Detail
-
Lanes
public Lanes()
Constructs a newLanestest.
-
-
Method Detail
-
getLanesCount
static int getLanesCount(java.lang.String value)
-
checkNumberOfLanesByKey
protected void checkNumberOfLanesByKey(OsmPrimitive p, java.lang.String lanesKey, java.lang.String message)
-
checkNumberOfLanes
protected void checkNumberOfLanes(OsmPrimitive p)
-
check
public void check(OsmPrimitive p)
Description copied from class:Test.TagTestChecks the tags of the given primitive.- Specified by:
checkin classTest.TagTest- Parameters:
p- The primitive to test
-
isPrimitiveUsable
public boolean isPrimitiveUsable(OsmPrimitive p)
Description copied from class:TestDetermines if the primitive is usable for tests.- Overrides:
isPrimitiveUsablein classTest- Parameters:
p- The primitive- Returns:
trueif the primitive can be tested,falseotherwise
-
-