source: josm/trunk/src/org/openstreetmap/josm/data/osm/visitor/Visitor.java@ 6380

Last change on this file since 6380 was 6380, checked in by Don-vip, 10 years ago

update license/copyright information

  • Property svn:eol-style set to native
File size: 999 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm.visitor;
3
4import org.openstreetmap.josm.data.osm.Changeset;
5import org.openstreetmap.josm.data.osm.Node;
6import org.openstreetmap.josm.data.osm.Relation;
7import 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 */
14public interface Visitor {
15 /**
16 * Visiting call for points.
17 * @param n The node to inspect.
18 */
19 void visit(Node n);
20 /**
21 * Visiting call for lines.
22 * @param w The way to inspect.
23 * @since 64
24 */
25 void visit(Way w);
26 /**
27 * Visiting call for relations.
28 * @param r The relation to inspect.
29 * @since 343
30 */
31 void visit(Relation r);
32 /**
33 * Visiting call for changesets.
34 * @param cs The changeset to inspect.
35 * @since 1523
36 */
37 void visit(Changeset cs);
38}
Note: See TracBrowser for help on using the repository browser.