Class DuplicatedWayNodes
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.DuplicatedWayNodes
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
public class DuplicatedWayNodes extends Test
Checks for ways with identical consecutive nodes.- Since:
- 3669
-
-
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 protected static intDUPLICATE_WAY_NODE-
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 DuplicatedWayNodes()Constructs a newDuplicatedWayNodestest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandfixError(TestError testError)Fixes the error with the appropriate commandbooleanisFixable(TestError testError)Returns true if the given error can be fixed automaticallyvoidvisit(Way w)Visiting call for lines.-
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, clear, deletePrimitivesIfNeeded, endTest, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isPrimitiveUsable, isResidentialArea, ok, removeIrrelevantErrors, setBeforeUpload, setPartialSelection, setShowElements, startTest, testBeforeUpload, visit, visit, visit
-
-
-
-
Field Detail
-
DUPLICATE_WAY_NODE
protected static final int DUPLICATE_WAY_NODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DuplicatedWayNodes
public DuplicatedWayNodes()
Constructs a newDuplicatedWayNodestest.
-
-
Method Detail
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitorVisiting call for lines.- Specified by:
visitin interfaceOsmPrimitiveVisitor- Overrides:
visitin classTest- Parameters:
w- The way to inspect.
-
fixError
public Command fixError(TestError testError)
Description copied from class:TestFixes the error with the appropriate command
-
-