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
|
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)
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, deletePrimitivesIfNeeded, equals, getErrors, getName, hashCode, initialize, isBuilding, isCanceled, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visit
visit
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 Set<Way> waysUsedInRelations
public static final Set<String> NAMED_WAYS
public UntaggedWay()
public void startTest(ProgressMonitor monitor)
Test
public 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)
Test
public Command fixError(TestError testError)
Test
public boolean isPrimitiveUsable(OsmPrimitive p)
Test
isPrimitiveUsable
in class Test
p
- The primitivetrue
if the primitive can be tested, false
otherwise