Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/commons/UInfoResultType.java @ 9260:b570b6fcc052
VegetationZone color added and disabled
author | gernotbelger |
---|---|
date | Tue, 17 Jul 2018 10:59:27 +0200 |
parents | 600e1ac42049 |
children | 72b3270e1568 |
comparison
equal
deleted
inserted
replaced
9259:66b003701546 | 9260:b570b6fcc052 |
---|---|
149 protected NumberFormat createFormatter(final CallContext context) { | 149 protected NumberFormat createFormatter(final CallContext context) { |
150 throw new UnsupportedOperationException(); | 150 throw new UnsupportedOperationException(); |
151 } | 151 } |
152 }; | 152 }; |
153 | 153 |
154 public static final UInfoResultType vegzone_color = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.color") { | |
155 private static final long serialVersionUID = 1L; | |
156 | |
157 @Override | |
158 public String exportValue(final CallContext context, final Object value) { | |
159 return exportStringValue(value); | |
160 } | |
161 | |
162 @Override | |
163 protected NumberFormat createFormatter(final CallContext context) { | |
164 throw new UnsupportedOperationException(); | |
165 } | |
166 }; | |
154 public static final UInfoResultType vegdauervon = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauervon") { | 167 public static final UInfoResultType vegdauervon = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauervon") { |
155 private static final long serialVersionUID = 1L; | 168 private static final long serialVersionUID = 1L; |
156 | 169 |
157 @Override | 170 @Override |
158 public String exportValue(final CallContext context, final Object value) { | 171 public String exportValue(final CallContext context, final Object value) { |
171 public static final UInfoResultType vegdauerbis = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauerbis") { | 184 public static final UInfoResultType vegdauerbis = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauerbis") { |
172 private static final long serialVersionUID = 1L; | 185 private static final long serialVersionUID = 1L; |
173 | 186 |
174 @Override | 187 @Override |
175 public String exportValue(final CallContext context, final Object value) { | 188 public String exportValue(final CallContext context, final Object value) { |
176 | 189 // valix hex-Check? |
177 final double doubleValue = asDouble(value); | 190 return String.valueOf(value); |
178 return exportDoubleValue(context, doubleValue); | |
179 } | 191 } |
180 | 192 |
181 @Override | 193 @Override |
182 protected NumberFormat createFormatter(final CallContext context) { | 194 protected NumberFormat createFormatter(final CallContext context) { |
183 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of | 195 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of |