comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/FacetTypes.java @ 8117:ca072278ad02

Complete mapping and themes for sediment load.
author "Tom Gottfried <tom@intevation.de>"
date Thu, 21 Aug 2014 18:09:37 +0200
parents 09725b65955a
children eb48b244921d
comparison
equal deleted inserted replaced
8116:fdb29e8b7ec0 8117:ca072278ad02
147 return type.startsWith("sedimentload.m3a") && !type.contains("unknown"); 147 return type.startsWith("sedimentload.m3a") && !type.contains("unknown");
148 } 148 }
149 public static boolean SEDIMENT_LOAD_TA(String type) { 149 public static boolean SEDIMENT_LOAD_TA(String type) {
150 return type.startsWith("sedimentload.ta") && !type.contains("unknown"); 150 return type.startsWith("sedimentload.ta") && !type.contains("unknown");
151 } 151 }
152 public static boolean SEDIMENT_LOAD(String type){
153 return type.startsWith("sedimentload") &&
154 !(type.contains(".m3a.") || type.contains(".ta."));
155 }
152 public static boolean SEDIMENT_LOAD_UNKNOWN(String type) { 156 public static boolean SEDIMENT_LOAD_UNKNOWN(String type) {
153 return type.equals("sedimentload.m3a.unknown") || 157 return type.equals("sedimentload.m3a.unknown") ||
154 type.equals("sedimentload.ta.unknown"); 158 type.equals("sedimentload.ta.unknown");
155 }
156 public static boolean SEDIMENT_LOAD_NO_FLOAT(String type) {
157 return type.startsWith("sedimentload") && !type.contains("susp");
158 } 159 }
159 }; 160 };
160 161
161 /** Available diagram/chart-types. This enum is evaluated at certain 162 /** Available diagram/chart-types. This enum is evaluated at certain
162 * places to iterate over chart-types to e.g. dynamically generate 163 * places to iterate over chart-types to e.g. dynamically generate
356 String SEDIMENT_LOAD_TA_SUSP_SAND_BED = "sedimentload.ta.susp_sand_bed"; 357 String SEDIMENT_LOAD_TA_SUSP_SAND_BED = "sedimentload.ta.susp_sand_bed";
357 String SEDIMENT_LOAD_TA_SUSP_SEDIMENT = "sedimentload.ta.susp_sediment"; 358 String SEDIMENT_LOAD_TA_SUSP_SEDIMENT = "sedimentload.ta.susp_sediment";
358 String SEDIMENT_LOAD_TA_TOTAL = "sedimentload.ta.total"; 359 String SEDIMENT_LOAD_TA_TOTAL = "sedimentload.ta.total";
359 String SEDIMENT_LOAD_TA_TOTAL_LOAD = "sedimentload.ta.total_load"; 360 String SEDIMENT_LOAD_TA_TOTAL_LOAD = "sedimentload.ta.total_load";
360 String SEDIMENT_LOAD_TA_UNKNOWN = "sedimentload.ta.unknown"; 361 String SEDIMENT_LOAD_TA_UNKNOWN = "sedimentload.ta.unknown";
361 String SEDIMENT_LOAD_TA_STATIC = "sedimentload.ta.static";
362 362
363 String SEDIMENT_LOAD_M3A_COARSE = "sedimentload.m3a.coarse"; 363 String SEDIMENT_LOAD_M3A_COARSE = "sedimentload.m3a.coarse";
364 String SEDIMENT_LOAD_M3A_SAND = "sedimentload.m3a.sand"; 364 String SEDIMENT_LOAD_M3A_SAND = "sedimentload.m3a.sand";
365 String SEDIMENT_LOAD_M3A_FINEMIDDLE = "sedimentload.m3a.finemiddle"; 365 String SEDIMENT_LOAD_M3A_FINEMIDDLE = "sedimentload.m3a.finemiddle";
366 String SEDIMENT_LOAD_M3A_SUSP_SAND = "sedimentload.m3a.susp_sand"; 366 String SEDIMENT_LOAD_M3A_SUSP_SAND = "sedimentload.m3a.susp_sand";

http://dive4elements.wald.intevation.org