Last change
on this file since 732 was 729, checked in by stoecker, 16 years ago |
added automatic tag correction system by Robin Rattay
|
File size:
585 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.corrector;
|
---|
3 |
|
---|
4 | public class TagCorrection {
|
---|
5 |
|
---|
6 | public final String oldKey;
|
---|
7 | public final String newKey;
|
---|
8 | public final String oldValue;
|
---|
9 | public final String newValue;
|
---|
10 |
|
---|
11 | public TagCorrection(String oldKey, String oldValue, String newKey, String newValue) {
|
---|
12 | this.oldKey = oldKey;
|
---|
13 | this.oldValue = oldValue;
|
---|
14 | this.newKey = newKey;
|
---|
15 | this.newValue = newValue;
|
---|
16 | }
|
---|
17 |
|
---|
18 | public boolean isKeyChanged() {
|
---|
19 | return !newKey.equals(oldKey);
|
---|
20 | }
|
---|
21 |
|
---|
22 | public boolean isValueChanged() {
|
---|
23 | return !newValue.equals(oldValue);
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.