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

Last change on this file since 9997 was 3210, checked in by bastiK, 14 years ago

autocompletion rework; breaks tageditor plugin and possibly other plugins
(merged the 2 autocompletion systems; adds presets values for the properties dialog )

  • Property svn:eol-style set to native
File size: 803 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.corrector;
3
4/**
5 * TagCorrection reprepresents a change of a single
6 * tag. Both key and value can be subject of this change.
7 */
8public class TagCorrection implements Correction {
9
10 public final String oldKey;
11 public final String newKey;
12 public final String oldValue;
13 public final String newValue;
14
15 public TagCorrection(String oldKey, String oldValue, String newKey,
16 String newValue) {
17 this.oldKey = oldKey;
18 this.oldValue = oldValue;
19 this.newKey = newKey;
20 this.newValue = newValue;
21 }
22
23 public boolean isKeyChanged() {
24 return !newKey.equals(oldKey);
25 }
26
27 public boolean isValueChanged() {
28 return !newValue.equals(oldValue);
29 }
30}
Note: See TracBrowser for help on using the repository browser.