diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/context/FLYSContextFactory.java @ 1822:6ed439ff61bf

Changed theme-mapping mechanism to include further condition (on master-artifacts attributes), added point themes for longitudinal.ws for calculations at locations. flys-artifacts/trunk@3151 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 03 Nov 2011 10:25:23 +0000
parents d2a17e990c70
children 8d9b573d1b9a
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/context/FLYSContextFactory.java	Thu Nov 03 10:19:29 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/context/FLYSContextFactory.java	Thu Nov 03 10:25:23 2011 +0000
@@ -360,6 +360,9 @@
             String pattern = (String) XMLUtils.xpath(
                 node, "@pattern", XPathConstants.STRING);
 
+            String masterAttrPattern = (String) XMLUtils.xpath(
+                node, "@masterAttr", XPathConstants.STRING);
+
             if (from != null && to != null) {
                 List<ThemeMapping> tm = mapping.get(from);
 
@@ -368,7 +371,8 @@
                     mapping.put(from, tm);
                 }
 
-                tm.add(new ThemeMapping(from, to, pattern));
+                tm.add(new ThemeMapping(
+                    from, to, pattern, masterAttrPattern));
             }
         }
 

http://dive4elements.wald.intevation.org