comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/context/FLYSContextFactory.java @ 1828:9562ca537143

Added new optional condition for theme-mappings: the output name. flys-artifacts/trunk@3158 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 04 Nov 2011 08:59:42 +0000
parents 8d9b573d1b9a
children 79a94c4171cb
comparison
equal deleted inserted replaced
1827:03f129fa0256 1828:9562ca537143
361 node, "@pattern", XPathConstants.STRING); 361 node, "@pattern", XPathConstants.STRING);
362 362
363 String masterAttrPattern = (String) XMLUtils.xpath( 363 String masterAttrPattern = (String) XMLUtils.xpath(
364 node, "@masterAttr", XPathConstants.STRING); 364 node, "@masterAttr", XPathConstants.STRING);
365 365
366 String outputPattern = (String) XMLUtils.xpath(
367 node, "@output", XPathConstants.STRING);
368
366 if (from != null && to != null) { 369 if (from != null && to != null) {
367 List<ThemeMapping> tm = mapping.get(from); 370 List<ThemeMapping> tm = mapping.get(from);
368 371
369 if (tm == null) { 372 if (tm == null) {
370 tm = new ArrayList<ThemeMapping>(); 373 tm = new ArrayList<ThemeMapping>();
371 mapping.put(from, tm); 374 mapping.put(from, tm);
372 } 375 }
373 376
374 tm.add(new ThemeMapping( 377 tm.add(new ThemeMapping(
375 from, to, pattern, masterAttrPattern)); 378 from, to, pattern, masterAttrPattern, outputPattern));
376 } 379 }
377 } 380 }
378 381
379 logger.debug("Found " + mapping.size() + " theme mappings."); 382 logger.debug("Found " + mapping.size() + " theme mappings.");
380 383

http://dive4elements.wald.intevation.org