Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/minfo/BedQualityState.java @ 3772:5a8f8fd5310c
The usual wipe after for ill configured Eclipses.
flys-artifacts/trunk@5477 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 15 Sep 2012 18:11:51 +0000 |
parents | b4ad8dafe584 |
children | 9f9d5ada96ca |
comparison
equal
deleted
inserted
replaced
3771:04309ca24614 | 3772:5a8f8fd5310c |
---|---|
130 protected String createPorosityTopLayerDescription(CallMeta meta, | 130 protected String createPorosityTopLayerDescription(CallMeta meta, |
131 BedBedQualityResult result) { | 131 BedBedQualityResult result) { |
132 DateRange range = result.getDateRange(); | 132 DateRange range = result.getDateRange(); |
133 Date from = range != null ? range.getFrom() : new Date(); | 133 Date from = range != null ? range.getFrom() : new Date(); |
134 Date to = range != null ? range.getTo() : new Date(); | 134 Date to = range != null ? range.getTo() : new Date(); |
135 | 135 |
136 String toplayer = Resources.getMsg(meta, I18N_TOPLAYER, I18N_TOPLAYER); | 136 String toplayer = Resources.getMsg(meta, I18N_TOPLAYER, I18N_TOPLAYER); |
137 return Resources.getMsg(meta, I18N_FACET_BED_POROSITY_TOPLAYER, | 137 return Resources.getMsg(meta, I18N_FACET_BED_POROSITY_TOPLAYER, |
138 I18N_FACET_BED_POROSITY_TOPLAYER, new Object[] { from, to, toplayer }); | 138 I18N_FACET_BED_POROSITY_TOPLAYER, new Object[] { from, to, toplayer }); |
139 } | 139 } |
140 | 140 |
141 protected String createPorositySubLayerDescription(CallMeta meta, | 141 protected String createPorositySubLayerDescription(CallMeta meta, |
142 BedBedQualityResult result) { | 142 BedBedQualityResult result) { |
143 DateRange range = result.getDateRange(); | 143 DateRange range = result.getDateRange(); |
144 Date from = range != null ? range.getFrom() : new Date(); | 144 Date from = range != null ? range.getFrom() : new Date(); |
145 Date to = range != null ? range.getTo() : new Date(); | 145 Date to = range != null ? range.getTo() : new Date(); |
146 | 146 |
147 String sublayer = Resources.getMsg(meta, I18N_SUBLAYER, I18N_SUBLAYER); | 147 String sublayer = Resources.getMsg(meta, I18N_SUBLAYER, I18N_SUBLAYER); |
148 return Resources.getMsg(meta, I18N_FACET_BED_POROSITY_SUBLAYER, | 148 return Resources.getMsg(meta, I18N_FACET_BED_POROSITY_SUBLAYER, |
149 I18N_FACET_BED_POROSITY_SUBLAYER, new Object[] { from, to, sublayer }); | 149 I18N_FACET_BED_POROSITY_SUBLAYER, new Object[] { from, to, sublayer }); |
150 } | 150 } |
151 | 151 |
152 protected String createDensityTopLayerDescription(CallMeta meta, | 152 protected String createDensityTopLayerDescription(CallMeta meta, |
153 BedBedQualityResult result) { | 153 BedBedQualityResult result) { |
154 DateRange range = result.getDateRange(); | 154 DateRange range = result.getDateRange(); |
155 Date from = range != null ? range.getFrom() : new Date(); | 155 Date from = range != null ? range.getFrom() : new Date(); |
156 Date to = range != null ? range.getTo() : new Date(); | 156 Date to = range != null ? range.getTo() : new Date(); |
157 | 157 |
158 String toplayer = Resources.getMsg(meta, I18N_TOPLAYER, I18N_TOPLAYER); | 158 String toplayer = Resources.getMsg(meta, I18N_TOPLAYER, I18N_TOPLAYER); |
159 return Resources.getMsg(meta, I18N_FACET_BED_DENSITY_TOPLAYER, | 159 return Resources.getMsg(meta, I18N_FACET_BED_DENSITY_TOPLAYER, |
160 I18N_FACET_BED_DENSITY_TOPLAYER, new Object[] { from, to, toplayer }); | 160 I18N_FACET_BED_DENSITY_TOPLAYER, new Object[] { from, to, toplayer }); |
161 } | 161 } |
162 | 162 |
163 protected String createDensitySubLayerDescription(CallMeta meta, | 163 protected String createDensitySubLayerDescription(CallMeta meta, |
164 BedBedQualityResult result) { | 164 BedBedQualityResult result) { |
165 DateRange range = result.getDateRange(); | 165 DateRange range = result.getDateRange(); |
166 Date from = range != null ? range.getFrom() : new Date(); | 166 Date from = range != null ? range.getFrom() : new Date(); |
167 Date to = range != null ? range.getTo() : new Date(); | 167 Date to = range != null ? range.getTo() : new Date(); |
168 | 168 |
169 String sublayer = Resources.getMsg(meta, I18N_SUBLAYER, I18N_SUBLAYER); | 169 String sublayer = Resources.getMsg(meta, I18N_SUBLAYER, I18N_SUBLAYER); |
170 return Resources.getMsg(meta, I18N_FACET_BED_DENSITY_SUBLAYER, | 170 return Resources.getMsg(meta, I18N_FACET_BED_DENSITY_SUBLAYER, |
171 I18N_FACET_BED_DENSITY_SUBLAYER, new Object[] { from, to, sublayer }); | 171 I18N_FACET_BED_DENSITY_SUBLAYER, new Object[] { from, to, sublayer }); |
172 } | 172 } |
173 | 173 |
187 protected String createDiameterSubLayerDescription(CallMeta meta, | 187 protected String createDiameterSubLayerDescription(CallMeta meta, |
188 BedBedQualityResult result) { | 188 BedBedQualityResult result) { |
189 DateRange range = result.getDateRange(); | 189 DateRange range = result.getDateRange(); |
190 Date from = range != null ? range.getFrom() : new Date(); | 190 Date from = range != null ? range.getFrom() : new Date(); |
191 Date to = range != null ? range.getTo() : new Date(); | 191 Date to = range != null ? range.getTo() : new Date(); |
192 | 192 |
193 String sublayer = Resources.getMsg(meta, I18N_SUBLAYER, I18N_SUBLAYER); | 193 String sublayer = Resources.getMsg(meta, I18N_SUBLAYER, I18N_SUBLAYER); |
194 return Resources.getMsg(meta, I18N_FACET_BED_DIAMETER_SUBLAYER, | 194 return Resources.getMsg(meta, I18N_FACET_BED_DIAMETER_SUBLAYER, |
195 I18N_FACET_BED_DIAMETER_SUBLAYER, new Object[] { result.getType(), | 195 I18N_FACET_BED_DIAMETER_SUBLAYER, new Object[] { result.getType(), |
196 from, to, sublayer }); | 196 from, to, sublayer }); |
197 } | 197 } |