diff gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/DefaultKeyValueDescribeData.java @ 473:a6a33ef35809

Added support to step back to previous states. Add state names to xform nodes in describe document and append old targets to list of reachable targets. gnv-artifacts/trunk@539 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 13 Jan 2010 23:10:56 +0000
parents e964a3d8f7bc
children 9a828e5a2390
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/DefaultKeyValueDescribeData.java	Wed Jan 13 18:58:26 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/DefaultKeyValueDescribeData.java	Wed Jan 13 23:10:56 2010 +0000
@@ -18,12 +18,19 @@
 
     private String value = null;
 
+    private String state;
+
     private boolean selected = false;
 
     public DefaultKeyValueDescribeData(String key, String value) {
+        this(key, value, null);
+    }
+
+    public DefaultKeyValueDescribeData(String key, String value, String state) {
         super();
         this.key = key;
         this.value = value;
+        this.state = state;
     }
 
     /**
@@ -54,4 +61,9 @@
         this.selected = selected;
     }
 
+
+    public String getState() {
+        return this.state;
+    }
+
 }

http://dive4elements.wald.intevation.org