source: josm/trunk/src/org/openstreetmap/josm/gui/mappaint/Rule.java@ 1743

Last change on this file since 1743 was 1743, checked in by stoecker, 15 years ago

added much improved preferences for external styles and presets

File size: 517 bytes
Line 
1package org.openstreetmap.josm.gui.mappaint;
2
3import org.openstreetmap.josm.data.osm.OsmUtils;
4
5public class Rule
6{
7 String key;
8 String value;
9 String boolValue;
10
11 public String getKey()
12 {
13 if(value != null)
14 return "n" + key + "=" + value;
15 else if(boolValue != null)
16 return "b" + key + "=" + OsmUtils.getNamedOsmBoolean(boolValue);
17 else
18 return "x" + key;
19 }
20 public void init()
21 {
22 key = value = boolValue = null;
23 }
24
25}
26
27
28
Note: See TracBrowser for help on using the repository browser.