comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/FacetTypes.java @ 7500:aaa48ad40bbd

issue1658: Define new FacetTypes and IS functions.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 01 Nov 2013 16:26:15 +0100
parents 0917a5cd384b
children 25606eacd471
comparison
equal deleted inserted replaced
7499:ab17c76611f9 7500:aaa48ad40bbd
109 return true; 109 return true;
110 } 110 }
111 111
112 return false; 112 return false;
113 } 113 }
114 public static boolean SEDIMENT_LOAD(String type) { 114 public static boolean SEDIMENT_LOAD_TOTAL_LOAD(String type) {
115 return type.startsWith("sedimentload") && !type.contains("unknown"); 115 return type.equals(SEDIMENT_LOAD_TA_TOTAL_LOAD) ||
116 type.equals(SEDIMENT_LOAD_M3A_TOTAL_LOAD);
117 }
118 public static boolean SEDIMENT_LOAD_TOTAL(String type) {
119 return type.equals(SEDIMENT_LOAD_TA_TOTAL) ||
120 type.equals(SEDIMENT_LOAD_M3A_TOTAL);
121 }
122 public static boolean SEDIMENT_LOAD_SUSP_SEDIMENT(String type) {
123 return type.equals(SEDIMENT_LOAD_TA_SUSP_SEDIMENT) ||
124 type.equals(SEDIMENT_LOAD_M3A_SUSP_SEDIMENT);
125 }
126 public static boolean SEDIMENT_LOAD_SUSP_SAND_BED(String type) {
127 return type.equals(SEDIMENT_LOAD_TA_SUSP_SAND_BED) ||
128 type.equals(SEDIMENT_LOAD_M3A_SUSP_SAND_BED);
129 }
130 public static boolean SEDIMENT_LOAD_SUSP_SAND(String type) {
131 return type.equals(SEDIMENT_LOAD_TA_SUSP_SAND) ||
132 type.equals(SEDIMENT_LOAD_M3A_SUSP_SAND);
133 }
134 public static boolean SEDIMENT_LOAD_FINEMIDDLE(String type) {
135 return type.equals(SEDIMENT_LOAD_TA_FINEMIDDLE) ||
136 type.equals(SEDIMENT_LOAD_M3A_FINEMIDDLE);
137 }
138 public static boolean SEDIMENT_LOAD_COARSE(String type) {
139 return type.equals(SEDIMENT_LOAD_TA_COARSE) ||
140 type.equals(SEDIMENT_LOAD_M3A_COARSE);
141 }
142 public static boolean SEDIMENT_LOAD_SAND(String type) {
143 return type.equals(SEDIMENT_LOAD_TA_SAND) ||
144 type.equals(SEDIMENT_LOAD_M3A_SAND);
145 }
146 public static boolean SEDIMENT_LOAD_M3A(String type) {
147 return type.startsWith("sedimentload.m3a") && !type.contains("unknown");
148 }
149 public static boolean SEDIMENT_LOAD_TA(String type) {
150 return type.startsWith("sedimentload.ta") && !type.contains("unknown");
116 } 151 }
117 public static boolean SEDIMENT_LOAD_UNKNOWN(String type) { 152 public static boolean SEDIMENT_LOAD_UNKNOWN(String type) {
118 return type.equals("sedimentload.unknown"); 153 return type.equals("sedimentload.m3a.unknown") ||
154 type.equals("sedimentload.ta.unknown");
119 } 155 }
120 public static boolean SEDIMENT_LOAD_NO_FLOAT(String type) { 156 public static boolean SEDIMENT_LOAD_NO_FLOAT(String type) {
121 return type.startsWith("sedimentload") && !type.contains("susp"); 157 return type.startsWith("sedimentload") && !type.contains("susp");
122 } 158 }
123 }; 159 };
311 String BED_DIFFERENCE_EPOCH_HEIGHT2_FILTERED = "bedheight_difference.epoch.height2.filtered"; 347 String BED_DIFFERENCE_EPOCH_HEIGHT2_FILTERED = "bedheight_difference.epoch.height2.filtered";
312 String MORPHOLOGIC_WIDTH = "morph-width"; 348 String MORPHOLOGIC_WIDTH = "morph-width";
313 349
314 String SEDIMENT_DENSITY = "sediment.density"; 350 String SEDIMENT_DENSITY = "sediment.density";
315 351
316 String SEDIMENT_LOAD_COARSE = "sedimentload.coarse"; 352 String SEDIMENT_LOAD_TA_COARSE = "sedimentload.ta.coarse";
317 String SEDIMENT_LOAD_SAND = "sedimentload.sand"; 353 String SEDIMENT_LOAD_TA_SAND = "sedimentload.ta.sand";
318 String SEDIMENT_LOAD_FINEMIDDLE = "sedimentload.finemiddle"; 354 String SEDIMENT_LOAD_TA_FINEMIDDLE = "sedimentload.ta.finemiddle";
319 String SEDIMENT_LOAD_SUSP_SAND = "sedimentload.susp_sand"; 355 String SEDIMENT_LOAD_TA_SUSP_SAND = "sedimentload.ta.susp_sand";
320 String SEDIMENT_LOAD_SUSP_SAND_BED = "sedimentload.susp_sand_bed"; 356 String SEDIMENT_LOAD_TA_SUSP_SAND_BED = "sedimentload.ta.susp_sand_bed";
321 String SEDIMENT_LOAD_SUSP_SEDIMENT = "sedimentload.susp_sediment"; 357 String SEDIMENT_LOAD_TA_SUSP_SEDIMENT = "sedimentload.ta.susp_sediment";
322 String SEDIMENT_LOAD_TOTAL = "sedimentload.total"; 358 String SEDIMENT_LOAD_TA_TOTAL = "sedimentload.ta.total";
323 String SEDIMENT_LOAD_TOTAL_LOAD = "sedimentload.total_load"; 359 String SEDIMENT_LOAD_TA_TOTAL_LOAD = "sedimentload.ta.total_load";
324 String SEDIMENT_LOAD_UNKNOWN = "sedimentload.unknown"; 360 String SEDIMENT_LOAD_TA_UNKNOWN = "sedimentload.ta.unknown";
361
362 String SEDIMENT_LOAD_M3A_COARSE = "sedimentload.m3a.coarse";
363 String SEDIMENT_LOAD_M3A_SAND = "sedimentload.m3a.sand";
364 String SEDIMENT_LOAD_M3A_FINEMIDDLE = "sedimentload.m3a.finemiddle";
365 String SEDIMENT_LOAD_M3A_SUSP_SAND = "sedimentload.m3a.susp_sand";
366 String SEDIMENT_LOAD_M3A_SUSP_SAND_BED = "sedimentload.m3a.susp_sand_bed";
367 String SEDIMENT_LOAD_M3A_SUSP_SEDIMENT = "sedimentload.m3a.susp_sediment";
368 String SEDIMENT_LOAD_M3A_TOTAL = "sedimentload.m3a.total";
369 String SEDIMENT_LOAD_M3A_TOTAL_LOAD = "sedimentload.m3a.total_load";
370 String SEDIMENT_LOAD_M3A_UNKNOWN = "sedimentload.m3a.unknown";
325 371
326 String SQ_OVERVIEW = "sq_overview"; 372 String SQ_OVERVIEW = "sq_overview";
327 373
328 String SQ_A_CURVE = "sq_a_curve"; 374 String SQ_A_CURVE = "sq_a_curve";
329 String SQ_A_MEASUREMENT = "sq_a_measurement"; 375 String SQ_A_MEASUREMENT = "sq_a_measurement";

http://dive4elements.wald.intevation.org