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 int
DUPLICATE_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 newDuplicatedWayNodes
test.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Command
fixError(TestError testError)
Fixes the error with the appropriate commandboolean
isFixable(TestError testError)
Returns true if the given error can be fixed automaticallyvoid
visit(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 newDuplicatedWayNodes
test.
-
-
Method Detail
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for lines.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Overrides:
visit
in classTest
- Parameters:
w
- The way to inspect.
-
fixError
public Command fixError(TestError testError)
Description copied from class:Test
Fixes the error with the appropriate command
-
-