Class Test.TagTest
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.Test.TagTest
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
- Direct Known Subclasses:
ConditionalKeys
,InternetTags
,Lanes
,MapCSSTagChecker
,NameMismatch
,OpeningHourTest
,TagChecker
- Enclosing class:
- Test
public abstract static class Test.TagTest extends Test
A test that forwards all primitives tocheck(OsmPrimitive)
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, isBeforeUpload, name, partialSelection, progressMonitor, stopwatch, testBeforeUpload
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
check(OsmPrimitive p)
Checks the tags of the given primitive.protected boolean
includeOtherSeverityChecks()
void
visit(Node n)
Visiting call for points.void
visit(Relation r)
Visiting call for relations.void
visit(Way w)
Visiting call for lines.-
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, clear, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, isResidentialArea, ok, removeIrrelevantErrors, setBeforeUpload, setPartialSelection, setShowElements, startTest, testBeforeUpload, visit
-
-
-
-
Constructor Detail
-
TagTest
protected TagTest(java.lang.String name, java.lang.String description)
Constructs a newTagTest
with given name and description.- Parameters:
name
- The test namedescription
- The test description
-
TagTest
protected TagTest(java.lang.String name)
Constructs a newTagTest
with given name.- Parameters:
name
- The test name
-
-
Method Detail
-
check
public abstract void check(OsmPrimitive p)
Checks the tags of the given primitive.- Parameters:
p
- The primitive to test
-
visit
public void visit(Node n)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for points.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Overrides:
visit
in classTest
- Parameters:
n
- The node to inspect.
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for lines.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Overrides:
visit
in classTest
- Parameters:
w
- The way to inspect.
-
visit
public void visit(Relation r)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for relations.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Overrides:
visit
in classTest
- Parameters:
r
- The relation to inspect.
-
includeOtherSeverityChecks
protected boolean includeOtherSeverityChecks()
-
-