|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.data.osm.visitor.AbstractVisitor
org.openstreetmap.josm.data.validation.Test
org.openstreetmap.josm.data.validation.tests.DuplicateNode
public class DuplicateNode
Tests if there are duplicate nodes
| Nested Class Summary | |
|---|---|
private static class |
DuplicateNode.NodeHash
|
| Field Summary | |
|---|---|
protected static int |
DUPLICATE_NODE
|
protected static int |
DUPLICATE_NODE_BOUNDARY
|
protected static int |
DUPLICATE_NODE_BUILDING
|
protected static int |
DUPLICATE_NODE_HIGHWAY
|
protected static int |
DUPLICATE_NODE_LANDUSE
|
protected static int |
DUPLICATE_NODE_MIXED
|
protected static int |
DUPLICATE_NODE_NATURAL
|
protected static int |
DUPLICATE_NODE_OTHER
|
protected static int |
DUPLICATE_NODE_POWER
|
protected static int |
DUPLICATE_NODE_RAILWAY
|
protected static int |
DUPLICATE_NODE_UNCLOSED
|
protected static int |
DUPLICATE_NODE_WATERWAY
|
(package private) Storage<java.lang.Object> |
potentialDuplicates
The map of potential duplicates. |
| Fields inherited from class org.openstreetmap.josm.data.validation.Test |
|---|
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload |
| Constructor Summary | |
|---|---|
DuplicateNode()
Constructor |
|
| Method Summary | |
|---|---|
java.util.List<TestError> |
buildTestErrors(Test parentTest,
java.util.List<Node> nodes)
|
void |
endTest()
Notification of the end of the test. |
Command |
fixError(TestError testError)
Merge the nodes into one. |
boolean |
isFixable(TestError testError)
Returns true if the given error can be fixed automatically |
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor |
void |
visit(Node n)
Visiting call for points. |
| Methods inherited from class org.openstreetmap.josm.data.validation.Test |
|---|
addGui, deletePrimitivesIfNeeded, getErrors, getName, initialize, isBuilding, isCanceled, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visit |
| Methods inherited from class org.openstreetmap.josm.data.osm.visitor.AbstractVisitor |
|---|
visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int DUPLICATE_NODE
protected static final int DUPLICATE_NODE_MIXED
protected static final int DUPLICATE_NODE_OTHER
protected static final int DUPLICATE_NODE_UNCLOSED
protected static final int DUPLICATE_NODE_BUILDING
protected static final int DUPLICATE_NODE_BOUNDARY
protected static final int DUPLICATE_NODE_HIGHWAY
protected static final int DUPLICATE_NODE_LANDUSE
protected static final int DUPLICATE_NODE_NATURAL
protected static final int DUPLICATE_NODE_POWER
protected static final int DUPLICATE_NODE_RAILWAY
protected static final int DUPLICATE_NODE_WATERWAY
Storage<java.lang.Object> potentialDuplicates
| Constructor Detail |
|---|
public DuplicateNode()
| Method Detail |
|---|
public void startTest(ProgressMonitor monitor)
Test
startTest in class Testmonitor - the progress monitorpublic void endTest()
Test
If you override this method, don't forget to cleanup Test.progressMonitor
(most overrides call super.endTest() to do this).
endTest in class Test
public java.util.List<TestError> buildTestErrors(Test parentTest,
java.util.List<Node> nodes)
public void visit(Node n)
Visitor
visit in interface Visitorvisit in class Testn - The node to inspect.public Command fixError(TestError testError)
fixError in class Testpublic boolean isFixable(TestError testError)
Test
isFixable in class TesttestError - The error to check if can be fixed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||