comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/commons/UInfoResultType.java @ 9069:1ffd38826175

access uinfo.vegetationzones+inundation_duration
author gernotbelger
date Tue, 15 May 2018 12:00:26 +0200
parents 7134a4c7d1b6
children 2c6aba003112
comparison
equal deleted inserted replaced
9068:a5cf8d7bff3c 9069:1ffd38826175
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 final double doubleValue = asDouble(value); 113 return exportStringValue(value);
114 return exportDoubleValue(context, doubleValue); 114 // final double doubleValue = asDouble(value);
115 // return exportDoubleValue(context, doubleValue);
115 } 116 }
116 117
117 @Override 118 @Override
118 protected NumberFormat createFormatter(final CallContext context) { 119 protected NumberFormat createFormatter(final CallContext context) {
119 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of 120 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of
125 public static final UInfoResultType vegdauerbis = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauerbis") { 126 public static final UInfoResultType vegdauerbis = new UInfoResultType(null, "uinfo.export.csv.meta.header.veg.dauerbis") {
126 private static final long serialVersionUID = 1L; 127 private static final long serialVersionUID = 1L;
127 128
128 @Override 129 @Override
129 public String exportValue(final CallContext context, final Object value) { 130 public String exportValue(final CallContext context, final Object value) {
130 final double doubleValue = asDouble(value); 131 return exportStringValue(value);
131 return exportDoubleValue(context, doubleValue); 132 // final double doubleValue = asDouble(value);
133 // return exportDoubleValue(context, doubleValue);
132 } 134 }
133 135
134 @Override 136 @Override
135 protected NumberFormat createFormatter(final CallContext context) { 137 protected NumberFormat createFormatter(final CallContext context) {
136 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of 138 // REMARK: other modules use Formatter.getWaterlevelW(context) instead, but that format with a variable number of

http://dive4elements.wald.intevation.org