Class DirectionNodes
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.DirectionNodes
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
public class DirectionNodes extends Test
Find nodes with direction tag and invalid number of parent ways or position in way. See #20019.- Since:
- 17349
-
-
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
DISPUTED_USE_MSG
private static int
END_NODE_CODE
private static java.lang.String
INVALID_USE_MSG
private static int
MULTIPLE_WAYS_CODE
private static int
NO_SUITABLE_WAY
private static int
NO_WAY_CODE
-
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 DirectionNodes()
Construct a newDirectionNodes
object
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkParents(Node n, java.lang.String tag)
private static boolean
isSuitableParentWay(Way w)
void
visit(Node n)
Visiting call for points.-
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, clear, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, isResidentialArea, ok, removeIrrelevantErrors, setBeforeUpload, setPartialSelection, setShowElements, startTest, testBeforeUpload, visit, visit, visit
-
-
-
-
Field Detail
-
MULTIPLE_WAYS_CODE
private static final int MULTIPLE_WAYS_CODE
- See Also:
- Constant Field Values
-
END_NODE_CODE
private static final int END_NODE_CODE
- See Also:
- Constant Field Values
-
NO_WAY_CODE
private static final int NO_WAY_CODE
- See Also:
- Constant Field Values
-
NO_SUITABLE_WAY
private static final int NO_SUITABLE_WAY
- See Also:
- Constant Field Values
-
INVALID_USE_MSG
private static final java.lang.String INVALID_USE_MSG
-
DISPUTED_USE_MSG
private static final java.lang.String DISPUTED_USE_MSG
-
-
Constructor Detail
-
DirectionNodes
public DirectionNodes()
Construct a newDirectionNodes
object
-
-
Method Detail
-
visit
public void visit(Node n)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for points.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Overrides:
visit
in classTest
- Parameters:
n
- The node to inspect.
-
isSuitableParentWay
private static boolean isSuitableParentWay(Way w)
-
checkParents
private void checkParents(Node n, java.lang.String tag)
-
-