comparison flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java @ 2128:bf67eb014443

Added convinience functions to FLYSArtifact and FLYSUtils. flys-artifacts/trunk@3703 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 18 Jan 2012 09:29:12 +0000
parents aa9cc91c8193
children c3e523a76340
comparison
equal deleted inserted replaced
2127:0c7847b8e85e 2128:bf67eb014443
413 413
414 return gauge != null ? gauge.getName() : null; 414 return gauge != null ? gauge.getName() : null;
415 } 415 }
416 416
417 417
418 public static Gauge getReferenceGauge(FLYSArtifact flys) {
419 Long officialNumber = flys.getDataAsLong("reference_gauge");
420
421 return officialNumber != null
422 ? Gauge.getGaugeByOfficialNumber(officialNumber)
423 : null;
424 }
425
426
418 public static Double getValueFromWQ(WQ wq) { 427 public static Double getValueFromWQ(WQ wq) {
419 if (wq == null) { 428 if (wq == null) {
420 return null; 429 return null;
421 } 430 }
422 431

http://dive4elements.wald.intevation.org