Mercurial > dive4elements > river
changeset 1866:dd7d6614747e
Helper for FacetTypes.
flys-artifacts/trunk@3215 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 10 Nov 2011 11:30:05 +0000 |
parents | ba6659083fa0 |
children | b1df3e64d8f5 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java |
diffstat | 2 files changed, 26 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Thu Nov 10 11:21:20 2011 +0000 +++ b/flys-artifacts/ChangeLog Thu Nov 10 11:30:05 2011 +0000 @@ -1,3 +1,16 @@ +2011-11-10 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java + (IS): New inner class with static method to allow queries whether + a type belongs to a however-defined "group". + +2011-11-10 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * doc/conf/conf.xml: Reverted accidental commit. + + * doc/conf/meta-data.xml: Extracted annotations-macro, add recommendation + for discharge longitudinal sections. + 2011-11-10 Felix Wolfsteller <felix.wolfsteller@intevation.de> * doc/conf/conf.xml: Reverted accidental commit.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java Thu Nov 10 11:21:20 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java Thu Nov 10 11:30:05 2011 +0000 @@ -2,6 +2,18 @@ public interface FacetTypes { + public class IS { + public static boolean WQ_KM(String type) { + return type.equals(DISCHARGE_LONGITUDINAL_W) + || type.equals(LONGITUDINAL_W); + } + public static boolean W_KM(String type) { + return type.equals(STATIC_WKMS) + || type.equals(HEIGHTMARKS_POINTS) + || WQ_KM(type); + } + }; + String FLOODMAP_WSPLGEN = "floodmap.wsplgen"; String FLOODMAP_BARRIERS = "floodmap.barriers"; String FLOODMAP_RIVERAXIS = "floodmap.riveraxis"; @@ -37,7 +49,7 @@ String DURATION_W = "duration_curve.w"; String DURATION_Q = "duration_curve.q"; - String STATIC_WKMS = "other.wkms"; + String STATIC_WKMS = "other.wkms"; String STATIC_WQKMS = "other.wqkms"; String HEIGHTMARKS_POINTS = "heightmarks_points";