|
||||||||||
| 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.DuplicateWay
public class DuplicateWay
Tests if there are duplicate ways
| Nested Class Summary | |
|---|---|
private static class |
DuplicateWay.WayPair
|
private static class |
DuplicateWay.WayPairNoTags
|
| Field Summary | |
|---|---|
protected static int |
DUPLICATE_WAY
|
private java.util.Set<java.lang.Integer> |
knownHashCodes
Set of known hashcodes for list of coordinates |
protected static int |
SAME_WAY
|
private MultiMap<DuplicateWay.WayPair,OsmPrimitive> |
ways
Bag of all ways |
private MultiMap<DuplicateWay.WayPairNoTags,OsmPrimitive> |
waysNoTags
Bag of all ways, regardless of tags |
| Fields inherited from class org.openstreetmap.josm.data.validation.Test |
|---|
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload |
| Constructor Summary | |
|---|---|
DuplicateWay()
Constructor |
|
| Method Summary | |
|---|---|
void |
endTest()
Notification of the end of the test. |
Command |
fixError(TestError testError)
Fix the error by removing all but one instance of duplicate ways |
boolean |
isFixable(TestError testError)
Returns true if the given error can be fixed automatically |
void |
removeUninterestingKeys(java.util.Map<java.lang.String,java.lang.String> wkeys)
Remove uninteresting keys, like created_by to normalize the tags |
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor |
void |
visit(Way w)
Visiting call for lines. |
| 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_WAY
protected static final int SAME_WAY
private MultiMap<DuplicateWay.WayPair,OsmPrimitive> ways
private MultiMap<DuplicateWay.WayPairNoTags,OsmPrimitive> waysNoTags
private java.util.Set<java.lang.Integer> knownHashCodes
| Constructor Detail |
|---|
public DuplicateWay()
| 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 Testpublic void removeUninterestingKeys(java.util.Map<java.lang.String,java.lang.String> wkeys)
wkeys - The tags of the way, obtained by Way#getKeyspublic void visit(Way w)
Visitor
visit in interface Visitorvisit in class Testw - The way 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 | |||||||||