Last change
on this file since 11909 was 9059, checked in by Don-vip, 8 years ago |
checkstyle
|
-
Property svn:eol-style
set to
native
|
File size:
1002 bytes
|
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.Changeset;
|
---|
5 | import org.openstreetmap.josm.data.osm.Node;
|
---|
6 | import org.openstreetmap.josm.data.osm.Relation;
|
---|
7 | import org.openstreetmap.josm.data.osm.Way;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * Implementation of the visitor scheme. Every @{link org.openstreetmap.josm.data.OsmPrimitive}
|
---|
11 | * can be visited by several different visitors.
|
---|
12 | * @since 8
|
---|
13 | */
|
---|
14 | public interface Visitor {
|
---|
15 | /**
|
---|
16 | * Visiting call for points.
|
---|
17 | * @param n The node to inspect.
|
---|
18 | */
|
---|
19 | void visit(Node n);
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Visiting call for lines.
|
---|
23 | * @param w The way to inspect.
|
---|
24 | * @since 64
|
---|
25 | */
|
---|
26 | void visit(Way w);
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * Visiting call for relations.
|
---|
30 | * @param r The relation to inspect.
|
---|
31 | * @since 343
|
---|
32 | */
|
---|
33 | void visit(Relation r);
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * Visiting call for changesets.
|
---|
37 | * @param cs The changeset to inspect.
|
---|
38 | * @since 1523
|
---|
39 | */
|
---|
40 | void visit(Changeset cs);
|
---|
41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.