Last change
on this file since 12847 was 10125, checked in by Don-vip, 8 years ago |
refactor classes from corrector package, add javadoc
|
-
Property svn:eol-style
set to
native
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1001] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[10125] | 2 | package org.openstreetmap.josm.data.correction;
|
---|
[1001] | 3 |
|
---|
| 4 | import org.openstreetmap.josm.data.osm.Relation;
|
---|
| 5 | import org.openstreetmap.josm.data.osm.RelationMember;
|
---|
| 6 |
|
---|
[10125] | 7 | /**
|
---|
| 8 | * Represents a change of a single {@link RelationMember} role.
|
---|
| 9 | * @since 1001
|
---|
| 10 | */
|
---|
[1001] | 11 | public class RoleCorrection implements Correction {
|
---|
| 12 |
|
---|
[10125] | 13 | /** OSM relation */
|
---|
[1001] | 14 | public final Relation relation;
|
---|
[10125] | 15 | /** Relation member index */
|
---|
[1614] | 16 | public final int position;
|
---|
[10125] | 17 | /** Relation member */
|
---|
[1001] | 18 | public final RelationMember member;
|
---|
[10125] | 19 | /** New role */
|
---|
[1001] | 20 | public final String newRole;
|
---|
| 21 |
|
---|
[10125] | 22 | /**
|
---|
| 23 | * Constructs a new {@code RoleCorrection}.
|
---|
| 24 | * @param relation OSM relation
|
---|
| 25 | * @param position relation member index
|
---|
| 26 | * @param member relation member
|
---|
| 27 | * @param newRole new role
|
---|
| 28 | */
|
---|
| 29 | public RoleCorrection(Relation relation, int position, RelationMember member, String newRole) {
|
---|
[1001] | 30 | this.relation = relation;
|
---|
[1614] | 31 | this.position = position;
|
---|
[1001] | 32 | this.member = member;
|
---|
| 33 | this.newRole = newRole;
|
---|
| 34 | }
|
---|
| 35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.