Interface ValidatorVisitor

All Known Implementing Classes:
PaintVisitor, ValidatorDialog.ValidatorBoundingXYVisitor

public interface ValidatorVisitor
A visitor that is used during validation.

The most basic use is to visit all TestErrors of the validator

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visit(List<Node> nodes)
    Visit a list of nodes that are part of the error
    void
    visit(OsmPrimitive primitive)
    Visit a OSM primitive, e.g.
    void
    visit(WaySegment waySegment)
    Visit a way segment that was part of the error
    void
    Visit a test error
  • Method Details

    • visit

      void visit(TestError error)
      Visit a test error
      Parameters:
      error - The test error to visit
    • visit

      void visit(OsmPrimitive primitive)
      Visit a OSM primitive, e.g. to highlight it
      Parameters:
      primitive - The primitive
    • visit

      void visit(WaySegment waySegment)
      Visit a way segment that was part of the error
      Parameters:
      waySegment - The way segment
    • visit

      void visit(List<Node> nodes)
      Visit a list of nodes that are part of the error
      Parameters:
      nodes - The nodes