org.openstreetmap.josm.data.osm
Class DatasetConsistencyTest
java.lang.Object
org.openstreetmap.josm.data.osm.DatasetConsistencyTest
public class DatasetConsistencyTest
- extends java.lang.Object
This class can be used to run consistency tests on dataset. Any errors found will be written to provided PrintWriter
Texts here should not be translated because they're not intended for users but for josm developers
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_ERRORS
private static final int MAX_ERRORS
- See Also:
- Constant Field Values
dataSet
private final DataSet dataSet
writer
private final java.io.PrintWriter writer
errorCount
private int errorCount
DatasetConsistencyTest
public DatasetConsistencyTest(DataSet dataSet,
java.io.Writer writer)
printError
private void printError(java.lang.String type,
java.lang.String message,
java.lang.Object... args)
checkReferrers
public void checkReferrers()
checkCompleteWaysWithIncompleteNodes
public void checkCompleteWaysWithIncompleteNodes()
checkCompleteNodesWithoutCoordinates
public void checkCompleteNodesWithoutCoordinates()
searchNodes
public void searchNodes()
searchWays
public void searchWays()
checkReferredPrimitive
private void checkReferredPrimitive(OsmPrimitive primitive,
OsmPrimitive parent)
referredPrimitiveNotInDataset
public void referredPrimitiveNotInDataset()
checkZeroNodesWays
public void checkZeroNodesWays()
runTest
public void runTest()
runTests
public static java.lang.String runTests(DataSet dataSet)
JOSM