Class WayConnectedToArea
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.WayConnectedToArea
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
public class WayConnectedToArea extends Test
Checks for ways connected to areas.- Since:
- 4682
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest
-
-
Field Summary
-
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 WayConnectedToArea()
Constructs a newWayConnectedToArea
test.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addPossibleError(Way w, Node wayNode, OsmPrimitive p, OsmPrimitive area)
private static boolean
isArea(OsmPrimitive p)
private void
testForError(Way w, Node wayNode, OsmPrimitive p)
void
visit(Way w)
Visiting call for lines.-
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
-
-
-
-
Constructor Detail
-
WayConnectedToArea
public WayConnectedToArea()
Constructs a newWayConnectedToArea
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.
-
testForError
private void testForError(Way w, Node wayNode, OsmPrimitive p)
-
isArea
private static boolean isArea(OsmPrimitive p)
-
addPossibleError
private void addPossibleError(Way w, Node wayNode, OsmPrimitive p, OsmPrimitive area)
-
-