Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/ChartArtifact.java @ 2158:1ea555bf3c6b
Removed state validation.
flys-artifacts/trunk@3744 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 20 Jan 2012 16:22:00 +0000 |
parents | 734d5f5e55c0 |
children | 4bd3d8bbb60c |
comparison
equal
deleted
inserted
replaced
2157:c4ceade9d50e | 2158:1ea555bf3c6b |
---|---|
190 ProtocolUtils.appendOutputModes(doc, outs, generated); | 190 ProtocolUtils.appendOutputModes(doc, outs, generated); |
191 } | 191 } |
192 | 192 |
193 try { | 193 try { |
194 DefaultState cur = (DefaultState) getCurrentState(context); | 194 DefaultState cur = (DefaultState) getCurrentState(context); |
195 if (cur.validate(this)) { | 195 List<Output> list = cur.getOutputs(); |
196 List<Output> list = cur.getOutputs(); | 196 if (list != null && list.size() > 0) { |
197 if (list != null && list.size() > 0) { | 197 logger.debug( |
198 logger.debug( | 198 "Append output modes for current state: " + cur.getID()); |
199 "Append output modes for current state: " + cur.getID()); | 199 |
200 | 200 List<Facet> fs = facets.get(cur.getID()); |
201 List<Facet> fs = facets.get(cur.getID()); | 201 |
202 | 202 if (fs != null && fs.size() > 0) { |
203 if (fs != null && fs.size() > 0) { | 203 List<Output> generated = generateOutputs(list, fs); |
204 List<Output> generated = generateOutputs(list, fs); | 204 |
205 | 205 logger.debug("Found " + fs.size() + " current facets."); |
206 logger.debug("Found " + fs.size() + " current facets."); | 206 if (!generated.isEmpty()) { |
207 if (!generated.isEmpty()) { | 207 ProtocolUtils.appendOutputModes( |
208 ProtocolUtils.appendOutputModes( | 208 doc, outs, generated); |
209 doc, outs, generated); | |
210 } | |
211 } | 209 } |
212 else { | 210 } |
213 logger.debug("No facets found for the current state."); | 211 else { |
214 } | 212 logger.debug("No facets found for the current state."); |
215 } | 213 } |
216 } | 214 } |
217 } | 215 } |
218 catch (IllegalArgumentException iae) { | 216 catch (IllegalArgumentException iae) { |
219 // state is not valid, so we do not append its outputs. | 217 // state is not valid, so we do not append its outputs. |