|
||||||||||
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.UntaggedWay
public class UntaggedWay
Checks for untagged ways
Field Summary | |
---|---|
protected static int |
COMMENTED_WAY
Untagged, but commented way error |
protected static int |
EMPTY_WAY
Empty way error |
static java.util.Set<java.lang.String> |
NAMED_WAYS
Ways that must have a name |
protected static int |
ONE_NODE_WAY
One node way error |
protected static int |
UNNAMED_JUNCTION
Unnamed junction error |
protected static int |
UNNAMED_WAY
Unnamed way error |
protected static int |
UNTAGGED_WAY
Untagged way error |
private java.util.Set<Way> |
waysUsedInRelations
|
static java.util.Set<java.lang.String> |
WHITELIST
Whitelist of roles allowed to reference an untagged way |
Fields inherited from class org.openstreetmap.josm.data.validation.Test |
---|
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload |
Constructor Summary | |
---|---|
UntaggedWay()
Constructor |
Method Summary | |
---|---|
void |
endTest()
Notification of the end of the test. |
Command |
fixError(TestError testError)
Fixes the error with the appropriate command |
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(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 EMPTY_WAY
protected static final int UNTAGGED_WAY
protected static final int UNNAMED_WAY
protected static final int ONE_NODE_WAY
protected static final int UNNAMED_JUNCTION
protected static final int COMMENTED_WAY
private java.util.Set<Way> waysUsedInRelations
public static final java.util.Set<java.lang.String> NAMED_WAYS
public static final java.util.Set<java.lang.String> WHITELIST
Constructor Detail |
---|
public UntaggedWay()
Method Detail |
---|
public void visit(Way w)
Visitor
visit
in interface Visitor
visit
in class Test
w
- The way to inspect.public void startTest(ProgressMonitor monitor)
Test
startTest
in class Test
monitor
- 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 boolean isFixable(TestError testError)
Test
isFixable
in class Test
testError
- The error to check if can be fixed
public Command fixError(TestError testError)
Test
fixError
in class Test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |