Last change
on this file since 13818 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
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.correction;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.osm.Relation;
|
---|
5 | import org.openstreetmap.josm.data.osm.RelationMember;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Represents a change of a single {@link RelationMember} role.
|
---|
9 | * @since 1001
|
---|
10 | */
|
---|
11 | public class RoleCorrection implements Correction {
|
---|
12 |
|
---|
13 | /** OSM relation */
|
---|
14 | public final Relation relation;
|
---|
15 | /** Relation member index */
|
---|
16 | public final int position;
|
---|
17 | /** Relation member */
|
---|
18 | public final RelationMember member;
|
---|
19 | /** New role */
|
---|
20 | public final String newRole;
|
---|
21 |
|
---|
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) {
|
---|
30 | this.relation = relation;
|
---|
31 | this.position = position;
|
---|
32 | this.member = member;
|
---|
33 | this.newRole = newRole;
|
---|
34 | }
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.