Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 627:833290f16f09
ISSUE-85 (part I/III) Added further fields for the location/range state.
flys-artifacts/trunk@1992 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 24 May 2011 11:27:37 +0000 |
parents | 929137ee8154 |
children | 51b69bca4560 |
comparison
equal
deleted
inserted
replaced
626:e3ee131d5dd3 | 627:833290f16f09 |
---|---|
459 return null; | 459 return null; |
460 } | 460 } |
461 | 461 |
462 | 462 |
463 /** | 463 /** |
464 * Determines the selected mode of distance/range input. | |
465 * | |
466 * @return true, if the range mode is selected otherwise false. | |
467 */ | |
468 public boolean isRange() { | |
469 StateData mode = getData("ld_mode"); | |
470 | |
471 if (mode == null) { | |
472 logger.warn("No mode location/range chosen. Defaults to range."); | |
473 return true; | |
474 } | |
475 | |
476 String value = (String) mode.getValue(); | |
477 | |
478 return value.equals("range"); | |
479 } | |
480 | |
481 | |
482 /** | |
464 * This method returns the given distance | 483 * This method returns the given distance |
465 * | 484 * |
466 * @return an array with lower and upper kilometer range for each | 485 * @return an array with lower and upper kilometer range for each |
467 * intersected gauge. | 486 * intersected gauge. |
468 */ | 487 */ |