public abstract static class Test.TagTest extends Test
check(OsmPrimitive)
.Test.TagTest
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, isBeforeUpload, name, partialSelection, progressMonitor, stopwatch, testBeforeUpload
Constructor and Description |
---|
TagTest(java.lang.String name)
Constructs a new
TagTest with given name. |
TagTest(java.lang.String name,
java.lang.String description)
Constructs a new
TagTest with given name and description. |
Modifier and Type | Method and Description |
---|---|
abstract void |
check(OsmPrimitive p)
Checks the tags of the given primitive.
|
protected boolean |
includeOtherSeverityChecks() |
boolean |
isPrimitiveUsable(OsmPrimitive p)
Determines if the primitive is usable for tests.
|
void |
visit(Node n)
Visiting call for points.
|
void |
visit(Relation r)
Visiting call for relations.
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, clear, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, initialize, isBuilding, isCanceled, isFixable, isResidentialArea, ok, setBeforeUpload, setPartialSelection, setShowElements, startTest, testBeforeUpload, visit
public TagTest(java.lang.String name, java.lang.String description)
TagTest
with given name and description.name
- The test namedescription
- The test descriptionpublic TagTest(java.lang.String name)
TagTest
with given name.name
- The test namepublic boolean isPrimitiveUsable(OsmPrimitive p)
Test
isPrimitiveUsable
in class Test
p
- The primitivetrue
if the primitive can be tested, false
otherwisepublic abstract void check(OsmPrimitive p)
p
- The primitive to testpublic void visit(Node n)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
visit
in class Test
n
- The node to inspect.public void visit(Way w)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
visit
in class Test
w
- The way to inspect.public void visit(Relation r)
OsmPrimitiveVisitor
visit
in interface OsmPrimitiveVisitor
visit
in class Test
r
- The relation to inspect.protected boolean includeOtherSeverityChecks()