diff gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java @ 1038:9981452c7e75

First step: Added a new state handling the selection between vector or scalar and a new transition in timeseries to provide vector values (issue27). gnv-artifacts/trunk@1110 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 18 May 2010 16:28:05 +0000
parents c07d9f9a738c
children cc4ec127d666
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Tue May 18 14:27:46 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Tue May 18 16:28:05 2010 +0000
@@ -253,7 +253,8 @@
                     if (valid) {
 
                         if (tmpItem.getName().equals(this.dataName)){
-                            String[] desc = getDescriptionForInputData(tmpItem, uuid);
+                            String[] desc = getDescriptionForInputData(
+                                tmpItem, context, uuid);
                             tmpItem.setDescription(desc);
                         }
                         this.inputData.put(tmpItem.getName(), tmpItem);
@@ -301,7 +302,9 @@
     }
 
 
-    protected String[] getDescriptionForInputData(InputData data, String uuid) {
+    protected String[] getDescriptionForInputData(
+        InputData data, CallContext context, String uuid)
+    {
         // there is only one element in the list, so take the first
         Object obj = getDescibeData(uuid).get(0);
         List descs = new ArrayList();

http://dive4elements.wald.intevation.org