# HG changeset patch # User Felix Wolfsteller # Date 1320924605 0 # Node ID dd7d6614747edaae31f6a1f838eb9688155ece3e # Parent ba6659083fa00505d26bb38d092b9d6bb5235692 Helper for FacetTypes. flys-artifacts/trunk@3215 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r ba6659083fa0 -r dd7d6614747e flys-artifacts/ChangeLog --- 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 + + * 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 + + * 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 * doc/conf/conf.xml: Reverted accidental commit. diff -r ba6659083fa0 -r dd7d6614747e flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java --- 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";