Class CrossingWays.Ways
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.CrossingWays
-
- org.openstreetmap.josm.data.validation.tests.CrossingWays.Ways
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
- Enclosing class:
- CrossingWays
public static class CrossingWays.Ways extends CrossingWays
General crossing ways test.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.tests.CrossingWays
CrossingWays.Boundaries, CrossingWays.MessageHelper, CrossingWays.SelfCrossing, CrossingWays.Ways
-
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
CROSSING_WAYS
-
Fields inherited from class org.openstreetmap.josm.data.validation.tests.CrossingWays
BARRIER, code, HIGHWAY, LANDUSE, RAILWAY, WATERWAY
-
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 Ways()
Constructs a new crossingWays
test.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) CrossingWays.MessageHelper
createMessage(Way w1, Way w2)
(package private) boolean
ignoreWaySegmentCombination(Way w1, Way w2)
boolean
isPrimitiveUsable(OsmPrimitive w)
Determines if the primitive is usable for tests.-
Methods inherited from class org.openstreetmap.josm.data.validation.tests.CrossingWays
endTest, findIntersectingWay, getSegments, isCoastline, isHighway, isProposedOrAbandoned, isRailway, isSelfCrossing, isSubwayOrTramOrRazed, isWaterArea, startTest, visit
-
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, clear, deletePrimitivesIfNeeded, fixError, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isFixable, isResidentialArea, ok, setBeforeUpload, setPartialSelection, setShowElements, testBeforeUpload, visit, visit, visit
-
-
-
-
Field Detail
-
CROSSING_WAYS
protected static final int CROSSING_WAYS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Ways
public Ways()
Constructs a new crossingWays
test.
-
-
Method Detail
-
isPrimitiveUsable
public boolean isPrimitiveUsable(OsmPrimitive w)
Description copied from class:Test
Determines if the primitive is usable for tests.- Overrides:
isPrimitiveUsable
in classTest
- Parameters:
w
- The primitive- Returns:
true
if the primitive can be tested,false
otherwise
-
ignoreWaySegmentCombination
boolean ignoreWaySegmentCombination(Way w1, Way w2)
- Specified by:
ignoreWaySegmentCombination
in classCrossingWays
-
createMessage
CrossingWays.MessageHelper createMessage(Way w1, Way w2)
- Overrides:
createMessage
in classCrossingWays
-
-