Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/commons/UInfoResultType.java @ 9249:600e1ac42049
Historical Result
author | gernotbelger |
---|---|
date | Thu, 12 Jul 2018 14:15:36 +0200 |
parents | da0bdbcd6f09 |
children | b570b6fcc052 |
comparison
equal
deleted
inserted
replaced
9248:9e6b70cce337 | 9249:600e1ac42049 |
---|---|
135 // digits. | 135 // digits. |
136 return Formatter.getSalixLine(context); | 136 return Formatter.getSalixLine(context); |
137 } | 137 } |
138 }; | 138 }; |
139 | 139 |
140 public static final UInfoResultType salixlinescen = new UInfoResultType(null, "uinfo.export.salix_line.csv.header.scen") { | |
141 private static final long serialVersionUID = 1L; | |
142 | |
143 @Override | |
144 public String exportValue(final CallContext context, final Object value) { | |
145 final double doubleValue = asDouble(value); | |
146 return exportDoubleValue(context, doubleValue); | |
147 } | |
148 | |
149 @Override | |
150 protected NumberFormat createFormatter(final CallContext context) { | |
151 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of | |
152 // digits. | |
153 return Formatter.getSalixLine(context); | |
154 } | |
155 }; | |
156 | |
157 public static final UInfoResultType vegname = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.name") { | 140 public static final UInfoResultType vegname = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.name") { |
158 private static final long serialVersionUID = 1L; | 141 private static final long serialVersionUID = 1L; |
159 | 142 |
160 @Override | 143 @Override |
161 public String exportValue(final CallContext context, final Object value) { | 144 public String exportValue(final CallContext context, final Object value) { |