source: josm/trunk/src/org/openstreetmap/josm/corrector/TagCorrection.java@ 1023

Last change on this file since 1023 was 1000, checked in by stoecker, 16 years ago

applied correction patch by Robin Rattay

File size: 619 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.corrector;
3
4public class TagCorrection implements Correction {
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,
12 String newValue) {
13 this.oldKey = oldKey;
14 this.oldValue = oldValue;
15 this.newKey = newKey;
16 this.newValue = newValue;
17 }
18
19 public boolean isKeyChanged() {
20 return !newKey.equals(oldKey);
21 }
22
23 public boolean isValueChanged() {
24 return !newValue.equals(oldValue);
25 }
26}
Note: See TracBrowser for help on using the repository browser.