comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixScenario.java @ 9347:08f46ccd37ba

salix.regional refactoring
author gernotbelger
date Tue, 31 Jul 2018 16:04:01 +0200
parents a978b601a034
children 2aec052d4088
comparison
equal deleted inserted replaced
9346:d89976700474 9347:08f46ccd37ba
9 */ 9 */
10 package org.dive4elements.river.artifacts.uinfo.salix; 10 package org.dive4elements.river.artifacts.uinfo.salix;
11 11
12 import java.io.Serializable; 12 import java.io.Serializable;
13 import java.text.NumberFormat; 13 import java.text.NumberFormat;
14
15 import org.apache.commons.lang.StringUtils;
14 16
15 /** 17 /**
16 * @author Domenico Nardi Tironi 18 * @author Domenico Nardi Tironi
17 * 19 *
18 */ 20 */
35 public int getDwspl() { 37 public int getDwspl() {
36 return this.dwspl; 38 return this.dwspl;
37 } 39 }
38 40
39 public String getDwsplFormatted() { 41 public String getDwsplFormatted() {
42 if (Double.isNaN(this.dwspl))
43 return StringUtils.EMPTY;
44
40 return String.valueOf(this.dwspl); 45 return String.valueOf(this.dwspl);
41 } 46 }
42 47
43 public String getSalixValueFormatted(final NumberFormat formatter) { 48 public String getSalixValueFormatted(final NumberFormat formatter) {
49 if (Double.isNaN(this.salix_value))
50 return StringUtils.EMPTY;
51
44 return formatter.format(this.salix_value); 52 return formatter.format(this.salix_value);
45 } 53 }
46 54
47 public static final String getScenarioValueHeader() { 55 public static final String getScenarioValueHeader() {
48 return "uinfo.export.salix_line.csv.header.scenario"; 56 return "uinfo.export.salix_line.csv.header.scenario";

http://dive4elements.wald.intevation.org