Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java @ 4812:65bfb6faa538
Bring Access pattern to "W fuer ungleichwertige Abflusslaengsschnitte".
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 18 Jan 2013 19:33:26 +0100 |
parents | 38ec171544de |
children | a1ce76091ade |
comparison
equal
deleted
inserted
replaced
4811:a06e443f159a | 4812:65bfb6faa538 |
---|---|
223 String mode = flys.getDataAsString("ld_mode"); | 223 String mode = flys.getDataAsString("ld_mode"); |
224 | 224 |
225 if (mode == null || mode.length() == 0) { | 225 if (mode == null || mode.length() == 0) { |
226 return KM_MODE.NONE; | 226 return KM_MODE.NONE; |
227 } | 227 } |
228 else if (mode.equals("distance")) { | 228 if (mode.equals("distance")) { |
229 return KM_MODE.RANGE; | 229 return KM_MODE.RANGE; |
230 } | 230 } |
231 else if (mode.equals("locations")) { | 231 if (mode.equals("locations")) { |
232 return KM_MODE.LOCATIONS; | 232 return KM_MODE.LOCATIONS; |
233 } | 233 } |
234 else { | 234 return KM_MODE.NONE; |
235 return KM_MODE.NONE; | |
236 } | |
237 } | 235 } |
238 | 236 |
239 /** | 237 /** |
240 * Get min and max kilometer, independent of parametization | 238 * Get min and max kilometer, independent of parametization |
241 * (ld_from/to vs ld_locations). | 239 * (ld_from/to vs ld_locations). |