source: josm/trunk/src/org/openstreetmap/josm/data/osm/IRelation.java@ 9460

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

javadoc

  • Property svn:eol-style set to native
File size: 909 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4/**
5 * IRelation captures the common functions of {@link Relation} and {@link RelationData}.
6 * @since 4098
7 */
8public interface IRelation extends IPrimitive {
9
10 /**
11 * Returns the number of members.
12 * @return number of members
13 */
14 int getMembersCount();
15
16 /**
17 * Returns id of the member at given index.
18 * @param idx member index
19 * @return id of the member at given index
20 */
21 long getMemberId(int idx);
22
23 /**
24 * Returns role of the member at given index.
25 * @param idx member index
26 * @return role of the member at given index
27 */
28 String getRole(int idx);
29
30 /**
31 * Returns type of the member at given index.
32 * @param idx member index
33 * @return type of the member at given index
34 */
35 OsmPrimitiveType getMemberType(int idx);
36}
Note: See TracBrowser for help on using the repository browser.