Last change
on this file since 13033 was 9460, checked in by Don-vip, 8 years ago |
javadoc
|
-
Property svn:eol-style
set to
native
|
File size:
909 bytes
|
Rev | Line | |
---|
[4098] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.data.osm;
|
---|
| 3 |
|
---|
[9460] | 4 | /**
|
---|
| 5 | * IRelation captures the common functions of {@link Relation} and {@link RelationData}.
|
---|
| 6 | * @since 4098
|
---|
| 7 | */
|
---|
[4098] | 8 | public interface IRelation extends IPrimitive {
|
---|
| 9 |
|
---|
[9460] | 10 | /**
|
---|
| 11 | * Returns the number of members.
|
---|
| 12 | * @return number of members
|
---|
| 13 | */
|
---|
[4098] | 14 | int getMembersCount();
|
---|
[8510] | 15 |
|
---|
[9460] | 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 | */
|
---|
[4098] | 21 | long getMemberId(int idx);
|
---|
[8510] | 22 |
|
---|
[9460] | 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 | */
|
---|
[4098] | 28 | String getRole(int idx);
|
---|
[8510] | 29 |
|
---|
[9460] | 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 | */
|
---|
[4098] | 35 | OsmPrimitiveType getMemberType(int idx);
|
---|
| 36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.