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 voidcheck(OsmPrimitive p)Checks the tags of the given primitive.protected booleanincludeOtherSeverityChecks()voidvisit(Node n)Visiting call for points.voidvisit(Relation r)Visiting call for relations.voidvisit(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 newTagTestwith given name and description.- Parameters:
name- The test namedescription- The test description
-
TagTest
protected TagTest(java.lang.String name)
Constructs a newTagTestwith 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:OsmPrimitiveVisitorVisiting call for points.- Specified by:
visitin interfaceOsmPrimitiveVisitor- Overrides:
visitin classTest- Parameters:
n- The node to inspect.
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitorVisiting call for lines.- Specified by:
visitin interfaceOsmPrimitiveVisitor- Overrides:
visitin classTest- Parameters:
w- The way to inspect.
-
visit
public void visit(Relation r)
Description copied from interface:OsmPrimitiveVisitorVisiting call for relations.- Specified by:
visitin interfaceOsmPrimitiveVisitor- Overrides:
visitin classTest- Parameters:
r- The relation to inspect.
-
includeOtherSeverityChecks
protected boolean includeOtherSeverityChecks()
-
-