Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/DefaultVegetationZoneXPathFunction.java @ 9299:4a6cc7c6716a
uinfo.inundation_duration veg'zone select
author | gernotbelger |
---|---|
date | Wed, 25 Jul 2018 14:42:44 +0200 |
parents | |
children | e511eb935ccd |
comparison
equal
deleted
inserted
replaced
9298:0b1a51b0c42e | 9299:4a6cc7c6716a |
---|---|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by | |
3 * Björnsen Beratende Ingenieure GmbH | |
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt | |
5 * | |
6 * This file is Free Software under the GNU AGPL (>=v3) | |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
8 * documentation coming with Dive4Elements River for details. | |
9 */ | |
10 package org.dive4elements.river.artifacts.datacage.templating; | |
11 | |
12 import java.util.List; | |
13 | |
14 import javax.xml.xpath.XPathFunction; | |
15 import javax.xml.xpath.XPathFunctionException; | |
16 | |
17 import org.dive4elements.river.artifacts.uinfo.vegetationzones.VegetationZone; | |
18 | |
19 /** | |
20 * Very specialized function the resolves the 'year' (als middle of all used events) from a fix-analysis-vollmer | |
21 * artifact). | |
22 * | |
23 * @author Gernot Belger | |
24 */ | |
25 public class DefaultVegetationZoneXPathFunction implements XPathFunction { | |
26 | |
27 public static final String ID = "defaultvegetationzone"; | |
28 | |
29 public static final int ARITY = 0; | |
30 | |
31 @Override | |
32 public Object evaluate(final List args) throws XPathFunctionException { | |
33 return VegetationZone.parseListToDataString(VegetationZone.getStandardList()); | |
34 } | |
35 } |