public class UntaggedWay extends Test
Test.TagTest| Modifier and Type | Field and Description |
|---|---|
protected static int |
COMMENTED_WAY
Untagged, but commented way error
|
protected static int |
EMPTY_WAY
Empty way error
|
(package private) 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 |
(package private) static java.util.Set<java.lang.String> |
WHITELIST
Whitelist of roles allowed to reference an untagged way
|
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, 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)
Determines if the primitive is usable for tests.
|
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, clear, compareTo, deletePrimitivesIfNeeded, equals, getErrors, getName, hashCode, initialize, isBuilding, isCanceled, isResidentialArea, ok, setBeforeUpload, setPartialSelection, setShowElements, testBeforeUpload, visit, visit, visitprotected 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
static final java.util.Set<java.lang.String> NAMED_WAYS
static final java.util.Set<java.lang.String> WHITELIST
public UntaggedWay()
public void visit(Way w)
OsmPrimitiveVisitorvisit in interface OsmPrimitiveVisitorvisit in class Testw - The way to inspect.public void startTest(ProgressMonitor monitor)
Testpublic void endTest()
Test
If you override this method, don't forget to cleanup progressMonitor
(most overrides call super.endTest() to do this).
public boolean isFixable(TestError testError)
Testpublic Command fixError(TestError testError)
Testpublic boolean isPrimitiveUsable(OsmPrimitive p)
TestisPrimitiveUsable in class Testp - The primitivetrue if the primitive can be tested, false otherwise