Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm.visitor;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.osm.Node;
|
---|
5 | import org.openstreetmap.josm.data.osm.Relation;
|
---|
6 | import org.openstreetmap.josm.data.osm.Way;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * Implementation of the visitor pattern for the 3 {@link org.openstreetmap.josm.data.osm.OsmPrimitive}
|
---|
10 | * types {@link Node}, {@link Way} and {@link Relation}.
|
---|
11 | * @since 12810
|
---|
12 | */
|
---|
13 | public interface OsmPrimitiveVisitor {
|
---|
14 | /**
|
---|
15 | * Visiting call for points.
|
---|
16 | * @param n The node to inspect.
|
---|
17 | */
|
---|
18 | void visit(Node n);
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Visiting call for lines.
|
---|
22 | * @param w The way to inspect.
|
---|
23 | * @since 64
|
---|
24 | */
|
---|
25 | void visit(Way w);
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * Visiting call for relations.
|
---|
29 | * @param r The relation to inspect.
|
---|
30 | * @since 343
|
---|
31 | */
|
---|
32 | void visit(Relation r);
|
---|
33 |
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.