Last change
on this file since 12718 was 12390, checked in by michael2402, 7 years ago |
See #14794: Document data.validation package and subpackages.
|
-
Property svn:eol-style
set to
native
|
File size:
996 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.validation;
|
---|
3 |
|
---|
4 | import java.util.List;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.osm.Node;
|
---|
7 | import org.openstreetmap.josm.data.osm.OsmPrimitive;
|
---|
8 | import org.openstreetmap.josm.data.osm.WaySegment;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * A visitor that is used during validation.
|
---|
12 | * <p>
|
---|
13 | * The most basic use is to visit all {@link TestError}s of the validator
|
---|
14 | */
|
---|
15 | public interface ValidatorVisitor {
|
---|
16 | /**
|
---|
17 | * Visit a test error
|
---|
18 | * @param error The test error to visit
|
---|
19 | */
|
---|
20 | void visit(TestError error);
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Visit a OSM primitive, e.g. to highlight it
|
---|
24 | * @param primitive The primitive
|
---|
25 | */
|
---|
26 | void visit(OsmPrimitive primitive);
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * Visit a way segment that was part of the error
|
---|
30 | * @param waySegment The way segment
|
---|
31 | */
|
---|
32 | void visit(WaySegment waySegment);
|
---|
33 |
|
---|
34 | /**
|
---|
35 | * Visit a list of nodes that are part of the error
|
---|
36 | * @param nodes The nodes
|
---|
37 | */
|
---|
38 | void visit(List<Node> nodes);
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.