Class UntaggedNode
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.UntaggedNode
-
- All Implemented Interfaces:
KeyValueVisitor
,OsmPrimitiveVisitor
public class UntaggedNode extends Test implements KeyValueVisitor
Checks for nodes with uninteresting tags that are in no way
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
ERROR_MESSAGE
protected static int
UNTAGGED_NODE_BLANK
protected static int
UNTAGGED_NODE_CREATED_BY
protected static int
UNTAGGED_NODE_FIXME
protected static int
UNTAGGED_NODE_NOTE
protected static int
UNTAGGED_NODE_OTHER
protected static int
UNTAGGED_NODE_SOURCE
protected static int
UNTAGGED_NODE_WATCH
-
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
-
-
Constructor Summary
Constructors Constructor Description UntaggedNode()
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static OsmPrimitive[]
castPrim(Tagged n)
Command
fixError(TestError testError)
Fixes the error with the appropriate commandboolean
isFixable(TestError testError)
Returns true if the given error can be fixed automaticallyvoid
visit(Node n)
Visiting call for points.void
visitKeyValue(Tagged n, String key, String value)
This method gets called for every tag received.-
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, clear, deletePrimitivesIfNeeded, endTest, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isPrimitiveUsable, isResidentialArea, ok, setBeforeUpload, setPartialSelection, setShowElements, startTest, testBeforeUpload, visit, visit, visit
-
-
-
-
Field Detail
-
UNTAGGED_NODE_BLANK
protected static final int UNTAGGED_NODE_BLANK
- See Also:
- Constant Field Values
-
UNTAGGED_NODE_FIXME
protected static final int UNTAGGED_NODE_FIXME
- See Also:
- Constant Field Values
-
UNTAGGED_NODE_NOTE
protected static final int UNTAGGED_NODE_NOTE
- See Also:
- Constant Field Values
-
UNTAGGED_NODE_CREATED_BY
protected static final int UNTAGGED_NODE_CREATED_BY
- See Also:
- Constant Field Values
-
UNTAGGED_NODE_WATCH
protected static final int UNTAGGED_NODE_WATCH
- See Also:
- Constant Field Values
-
UNTAGGED_NODE_SOURCE
protected static final int UNTAGGED_NODE_SOURCE
- See Also:
- Constant Field Values
-
UNTAGGED_NODE_OTHER
protected static final int UNTAGGED_NODE_OTHER
- See Also:
- Constant Field Values
-
ERROR_MESSAGE
protected static final String ERROR_MESSAGE
-
-
Constructor Detail
-
UntaggedNode
public UntaggedNode()
Constructor
-
-
Method Detail
-
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.
-
castPrim
private static OsmPrimitive[] castPrim(Tagged n)
-
visitKeyValue
public void visitKeyValue(Tagged n, String key, String value)
Description copied from interface:KeyValueVisitor
This method gets called for every tag received.- Specified by:
visitKeyValue
in interfaceKeyValueVisitor
- Parameters:
n
- This primitivekey
- The keyvalue
- The value
-
fixError
public Command fixError(TestError testError)
Description copied from class:Test
Fixes the error with the appropriate command
-
-