org.openstreetmap.josm.data.validation.tests
Class UntaggedNode

java.lang.Object
  extended by org.openstreetmap.josm.data.osm.visitor.AbstractVisitor
      extended by org.openstreetmap.josm.data.validation.Test
          extended by org.openstreetmap.josm.data.validation.tests.UntaggedNode
All Implemented Interfaces:
Visitor

public class UntaggedNode
extends Test

Checks for nodes with uninteresting tags that are in no way


Field Summary
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, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload
 
Constructor Summary
UntaggedNode()
          Constructor
 
Method Summary
private  boolean contains(java.util.Map.Entry<java.lang.String,java.lang.String> tag, java.lang.String s)
           
 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
 void startTest(ProgressMonitor monitor)
          Start the test using a given progress monitor
 void visit(java.util.Collection<OsmPrimitive> selection)
          Visits all primitives to be tested.
 void visit(Node n)
          Visiting call for points.
 
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, deletePrimitivesIfNeeded, endTest, getErrors, getName, initialize, isBuilding, isCanceled, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit
 
Methods inherited from class org.openstreetmap.josm.data.osm.visitor.AbstractVisitor
visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

UntaggedNode

public UntaggedNode()
Constructor

Method Detail

startTest

public void startTest(ProgressMonitor monitor)
Description copied from class: Test
Start the test using a given progress monitor

Overrides:
startTest in class Test
Parameters:
monitor - the progress monitor

visit

public void visit(java.util.Collection<OsmPrimitive> selection)
Description copied from class: Test
Visits all primitives to be tested. These primitives are always visited in the same order: nodes first, then ways.

Overrides:
visit in class Test
Parameters:
selection - The primitives to be tested

visit

public void visit(Node n)
Description copied from interface: Visitor
Visiting call for points.

Specified by:
visit in interface Visitor
Overrides:
visit in class Test
Parameters:
n - The node to inspect.

contains

private boolean contains(java.util.Map.Entry<java.lang.String,java.lang.String> tag,
                         java.lang.String s)

fixError

public Command fixError(TestError testError)
Description copied from class: Test
Fixes the error with the appropriate command

Overrides:
fixError in class Test
Returns:
The command to fix the error

isFixable

public boolean isFixable(TestError testError)
Description copied from class: Test
Returns true if the given error can be fixed automatically

Overrides:
isFixable in class Test
Parameters:
testError - The error to check if can be fixed
Returns:
true if the error can be fixed


JOSM