[Dive4elements-commits] [PATCH 3 of 7] New facet type in FacetTypes

Wald Commits scm-commit at wald.intevation.org
Fri Jun 21 15:38:15 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1371821467 -7200
# Node ID 94f7e1a4736bb15d3dd9f9003dbf0fe6a3212c43
# Parent  7b67b952b517bd38cac5817ae429d76a4cb04d9e
New facet type in FacetTypes.

diff -r 7b67b952b517 -r 94f7e1a4736b artifacts/src/main/java/org/dive4elements/river/artifacts/model/FacetTypes.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FacetTypes.java	Fri Jun 21 15:30:26 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FacetTypes.java	Fri Jun 21 15:31:07 2013 +0200
@@ -112,7 +112,10 @@
             return false;
         }
         public static boolean SEDIMENT_LOAD(String type) {
-            return type.startsWith("sedimentload");
+            return type.startsWith("sedimentload") && !type.contains("unknown");
+        }
+        public static boolean SEDIMENT_LOAD_UNKNOWN(String type) {
+            return type.equals("sedimentload.unknown");
         }
         public static boolean SEDIMENT_LOAD_NO_FLOAT(String type) {
             return type.startsWith("sedimentload") && !type.contains("susp");
@@ -310,6 +313,7 @@
     String SEDIMENT_LOAD_SUSP_SEDIMENT = "sedimentload.susp_sediment";
     String SEDIMENT_LOAD_TOTAL         = "sedimentload.total";
     String SEDIMENT_LOAD_TOTAL_LOAD    = "sedimentload.total_load";
+    String SEDIMENT_LOAD_UNKOWN        = "sedimentload.unknown";
 
     String SQ_OVERVIEW       = "sq_overview";
 


More information about the Dive4elements-commits mailing list