Class ApiCapabilitiesTest
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.ApiCapabilitiesTest
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
public class ApiCapabilitiesTest extends Test
Performs validation tests against OSM API capabilities. This class does not test length of key/values (limited to 255 characters) because it's done byTagChecker
.- Since:
- 7574
-
-
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 int
MAX_WAY_NODES_ERROR
private long
maxNodes
-
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 ApiCapabilitiesTest()
Constructs a newApiCapabilitiesTest
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize()
Initializes any global data used this tester.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, isBuilding, isCanceled, isFixable, isPrimitiveUsable, isResidentialArea, ok, removeIrrelevantErrors, setBeforeUpload, setPartialSelection, setShowElements, startTest, testBeforeUpload, visit, visit, visit
-
-
-
-
Field Detail
-
MAX_WAY_NODES_ERROR
private static final int MAX_WAY_NODES_ERROR
- See Also:
- Constant Field Values
-
maxNodes
private long maxNodes
-
-
Constructor Detail
-
ApiCapabilitiesTest
public ApiCapabilitiesTest()
Constructs a newApiCapabilitiesTest
.
-
-
Method Detail
-
initialize
public void initialize() throws java.lang.Exception
Description copied from class:Test
Initializes any global data used this tester.- Overrides:
initialize
in classTest
- Throws:
java.lang.Exception
- When cannot initialize the test
-
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.
-
-