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.StringDISPUTED_USE_MSGprivate static intEND_NODE_CODEprivate static java.lang.StringINVALID_USE_MSGprivate static intMULTIPLE_WAYS_CODEprivate static intNO_SUITABLE_WAYprivate static intNO_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 newDirectionNodesobject
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckParents(Node n, java.lang.String tag)private static booleanisSuitableParentWay(Way w)voidvisit(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 newDirectionNodesobject
-
-
Method Detail
-
visit
public void visit(Node n)
Description copied from interface:OsmPrimitiveVisitorVisiting call for points.- Specified by:
visitin interfaceOsmPrimitiveVisitor- Overrides:
visitin classTest- Parameters:
n- The node to inspect.
-
isSuitableParentWay
private static boolean isSuitableParentWay(Way w)
-
checkParents
private void checkParents(Node n, java.lang.String tag)
-
-