comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/FacetTypes.java @ 8148:eb48b244921d

The rest is silence.
author Tom Gottfried <tom@intevation.de>
date Wed, 27 Aug 2014 19:52:51 +0200
parents ca072278ad02
children 4d99606a844e
comparison
equal deleted inserted replaced
8147:8ad0b7bc3e73 8148:eb48b244921d
108 { 108 {
109 return true; 109 return true;
110 } 110 }
111 111
112 return false; 112 return false;
113 }
114 public static boolean SEDIMENT_LOAD_TOTAL_LOAD(String type) {
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");
151 }
152 public static boolean SEDIMENT_LOAD(String type){
153 return type.startsWith("sedimentload") &&
154 !(type.contains(".m3a.") || type.contains(".ta."));
155 }
156 public static boolean SEDIMENT_LOAD_UNKNOWN(String type) {
157 return type.equals("sedimentload.m3a.unknown") ||
158 type.equals("sedimentload.ta.unknown");
159 } 113 }
160 }; 114 };
161 115
162 /** Available diagram/chart-types. This enum is evaluated at certain 116 /** Available diagram/chart-types. This enum is evaluated at certain
163 * places to iterate over chart-types to e.g. dynamically generate 117 * places to iterate over chart-types to e.g. dynamically generate
348 302
349 String MORPHOLOGIC_WIDTH = "morph-width"; 303 String MORPHOLOGIC_WIDTH = "morph-width";
350 304
351 String SEDIMENT_DENSITY = "sediment.density"; 305 String SEDIMENT_DENSITY = "sediment.density";
352 306
353 String SEDIMENT_LOAD_TA_COARSE = "sedimentload.ta.coarse";
354 String SEDIMENT_LOAD_TA_SAND = "sedimentload.ta.sand";
355 String SEDIMENT_LOAD_TA_FINEMIDDLE = "sedimentload.ta.finemiddle";
356 String SEDIMENT_LOAD_TA_SUSP_SAND = "sedimentload.ta.susp_sand";
357 String SEDIMENT_LOAD_TA_SUSP_SAND_BED = "sedimentload.ta.susp_sand_bed";
358 String SEDIMENT_LOAD_TA_SUSP_SEDIMENT = "sedimentload.ta.susp_sediment";
359 String SEDIMENT_LOAD_TA_TOTAL = "sedimentload.ta.total";
360 String SEDIMENT_LOAD_TA_TOTAL_LOAD = "sedimentload.ta.total_load";
361 String SEDIMENT_LOAD_TA_UNKNOWN = "sedimentload.ta.unknown";
362
363 String SEDIMENT_LOAD_M3A_COARSE = "sedimentload.m3a.coarse";
364 String SEDIMENT_LOAD_M3A_SAND = "sedimentload.m3a.sand";
365 String SEDIMENT_LOAD_M3A_FINEMIDDLE = "sedimentload.m3a.finemiddle";
366 String SEDIMENT_LOAD_M3A_SUSP_SAND = "sedimentload.m3a.susp_sand";
367 String SEDIMENT_LOAD_M3A_SUSP_SAND_BED = "sedimentload.m3a.susp_sand_bed";
368 String SEDIMENT_LOAD_M3A_SUSP_SEDIMENT = "sedimentload.m3a.susp_sediment";
369 String SEDIMENT_LOAD_M3A_TOTAL = "sedimentload.m3a.total";
370 String SEDIMENT_LOAD_M3A_TOTAL_LOAD = "sedimentload.m3a.total_load";
371 String SEDIMENT_LOAD_M3A_UNKNOWN = "sedimentload.m3a.unknown";
372
373 String SQ_OVERVIEW = "sq_overview"; 307 String SQ_OVERVIEW = "sq_overview";
374 308
375 String SQ_A_CURVE = "sq_a_curve"; 309 String SQ_A_CURVE = "sq_a_curve";
376 String SQ_A_MEASUREMENT = "sq_a_measurement"; 310 String SQ_A_MEASUREMENT = "sq_a_measurement";
377 String SQ_A_OUTLIER = "sq_a_outlier"; 311 String SQ_A_OUTLIER = "sq_a_outlier";

http://dive4elements.wald.intevation.org