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

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.RelationChecker
All Implemented Interfaces:
Visitor

public class RelationChecker
extends Test

Check for wrong relations


Nested Class Summary
static class RelationChecker.RoleInfo
           
 
Field Summary
protected static int HIGH_COUNT
           
protected static int LOW_COUNT
           
protected static int RELATION_EMPTY
           
protected static int RELATION_UNKNOWN
           
(package private) static java.util.Collection<TaggingPreset> relationpresets
           
protected static int ROLE_EMPTY
           
protected static int ROLE_MISSING
           
protected static int ROLE_UNKNOWN
           
protected static int WRONG_TYPE
           
 
Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload
 
Constructor Summary
RelationChecker()
          Constructor
 
Method Summary
 void initialize()
          Initializes any global data used this tester.
 void initializePresets()
          Reads the presets data.
 void visit(Relation n)
          Visiting call for relations.
 
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, isBuilding, isCanceled, isFixable, ok, setBeforeUpload, setPartialSelection, startTest, testBeforeUpload, visit, 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

ROLE_UNKNOWN

protected static final int ROLE_UNKNOWN
See Also:
Constant Field Values

ROLE_EMPTY

protected static final int ROLE_EMPTY
See Also:
Constant Field Values

WRONG_TYPE

protected static final int WRONG_TYPE
See Also:
Constant Field Values

HIGH_COUNT

protected static final int HIGH_COUNT
See Also:
Constant Field Values

LOW_COUNT

protected static final int LOW_COUNT
See Also:
Constant Field Values

ROLE_MISSING

protected static final int ROLE_MISSING
See Also:
Constant Field Values

RELATION_UNKNOWN

protected static final int RELATION_UNKNOWN
See Also:
Constant Field Values

RELATION_EMPTY

protected static final int RELATION_EMPTY
See Also:
Constant Field Values

relationpresets

static java.util.Collection<TaggingPreset> relationpresets
Constructor Detail

RelationChecker

public RelationChecker()
Constructor

Method Detail

initialize

public void initialize()
Description copied from class: Test
Initializes any global data used this tester.

Overrides:
initialize in class Test

initializePresets

public void initializePresets()
Reads the presets data.


visit

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

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


JOSM