Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/commons/UInfoResultType.java @ 9101:2c6aba003112
Mini-Bugfix Vegetationszonen-Export
author | gernotbelger |
---|---|
date | Mon, 28 May 2018 16:39:56 +0200 |
parents | 1ffd38826175 |
children | da0bdbcd6f09 |
comparison
equal
deleted
inserted
replaced
9100:2a1dcee5e54a | 9101:2c6aba003112 |
---|---|
108 public static final UInfoResultType vegdauervon = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauervon") { | 108 public static final UInfoResultType vegdauervon = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauervon") { |
109 private static final long serialVersionUID = 1L; | 109 private static final long serialVersionUID = 1L; |
110 | 110 |
111 @Override | 111 @Override |
112 public String exportValue(final CallContext context, final Object value) { | 112 public String exportValue(final CallContext context, final Object value) { |
113 return exportStringValue(value); | 113 final double doubleValue = asDouble(value); |
114 // final double doubleValue = asDouble(value); | 114 return exportDoubleValue(context, doubleValue); |
115 // return exportDoubleValue(context, doubleValue); | |
116 } | 115 } |
117 | 116 |
118 @Override | 117 @Override |
119 protected NumberFormat createFormatter(final CallContext context) { | 118 protected NumberFormat createFormatter(final CallContext context) { |
120 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of | 119 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of |
126 public static final UInfoResultType vegdauerbis = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauerbis") { | 125 public static final UInfoResultType vegdauerbis = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauerbis") { |
127 private static final long serialVersionUID = 1L; | 126 private static final long serialVersionUID = 1L; |
128 | 127 |
129 @Override | 128 @Override |
130 public String exportValue(final CallContext context, final Object value) { | 129 public String exportValue(final CallContext context, final Object value) { |
131 return exportStringValue(value); | 130 |
132 // final double doubleValue = asDouble(value); | 131 final double doubleValue = asDouble(value); |
133 // return exportDoubleValue(context, doubleValue); | 132 return exportDoubleValue(context, doubleValue); |
134 } | 133 } |
135 | 134 |
136 @Override | 135 @Override |
137 protected NumberFormat createFormatter(final CallContext context) { | 136 protected NumberFormat createFormatter(final CallContext context) { |
138 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of | 137 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of |