public class UntaggedWay extends Test
| Modifier and Type | Field and Description |
|---|---|
protected static int |
COMMENTED_WAY
Untagged, but commented way error
|
protected static int |
EMPTY_WAY
Empty way error
|
static Set<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 Set<Way> |
waysUsedInRelations |
static Set<String> |
WHITELIST
Whitelist of roles allowed to reference an untagged way
|
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload| Constructor and Description |
|---|
UntaggedWay()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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
|
boolean |
isPrimitiveUsable(OsmPrimitive p) |
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, deletePrimitivesIfNeeded, getErrors, getName, initialize, isBuilding, isCanceled, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visitvisitprotected 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 Set<Way> waysUsedInRelations
public static final Set<String> NAMED_WAYS
public UntaggedWay()
public void startTest(ProgressMonitor monitor)
Testpublic void endTest()
Test
If you override this method, don't forget to cleanup Test.progressMonitor
(most overrides call super.endTest() to do this).
public boolean isFixable(TestError testError)
Testpublic Command fixError(TestError testError)
Testpublic boolean isPrimitiveUsable(OsmPrimitive p)
isPrimitiveUsable in class Test