source: josm/trunk/src/org/openstreetmap/josm/data/osm/visitor/PrimitiveVisitor.java@ 13206

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

fix #9778, fix #9806 - access OSM API and JOSM website in HTTPS by default + other HTTPS links where applicable + update CONTRIBUTION

  • Property svn:eol-style set to native
File size: 790 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm.visitor;
3
4import org.openstreetmap.josm.data.osm.INode;
5import org.openstreetmap.josm.data.osm.IRelation;
6import org.openstreetmap.josm.data.osm.IWay;
7
8/**
9 * OSM primitives interfaces visitor, following conventional <a href="https://en.wikipedia.org/wiki/Visitor_pattern">visitor design pattern</a>.
10 * @since 4100
11 */
12public interface PrimitiveVisitor {
13
14 /**
15 * Visiting call for points.
16 * @param n The node to inspect.
17 */
18 void visit(INode n);
19
20 /**
21 * Visiting call for lines.
22 * @param w The way to inspect.
23 */
24 void visit(IWay w);
25
26 /**
27 * Visiting call for relations.
28 * @param r The relation to inspect.
29 */
30 void visit(IRelation r);
31}
Note: See TracBrowser for help on using the repository browser.