Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/AnnotationArtifact.java @ 1777:a8aa343799a2
Extracet getFlysContext from FLYSArtifact to FLYSUtils.
flys-artifacts/trunk@3099 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 28 Oct 2011 09:00:51 +0000 |
parents | c62ff9e72cea |
children | 2d0b22602fc2 |
comparison
equal
deleted
inserted
replaced
1776:7d1bd710a4b3 | 1777:a8aa343799a2 |
---|---|
93 | 93 |
94 if (logger.isDebugEnabled()) { | 94 if (logger.isDebugEnabled()) { |
95 dumpArtifact(); | 95 dumpArtifact(); |
96 } | 96 } |
97 | 97 |
98 FLYSContext flysContext = getFlysContext(context); | 98 FLYSContext flysContext = FLYSUtils.getFlysContext(context); |
99 StateEngine stateEngine = (StateEngine) flysContext.get( | 99 StateEngine stateEngine = (StateEngine) flysContext.get( |
100 FLYSContext.STATE_ENGINE_KEY); | 100 FLYSContext.STATE_ENGINE_KEY); |
101 | 101 |
102 Document description = XMLUtils.newDocument(); | 102 Document description = XMLUtils.newDocument(); |
103 XMLUtils.ElementCreator creator = new XMLUtils.ElementCreator( | 103 XMLUtils.ElementCreator creator = new XMLUtils.ElementCreator( |
157 XMLUtils.ElementCreator creator = new XMLUtils.ElementCreator( | 157 XMLUtils.ElementCreator creator = new XMLUtils.ElementCreator( |
158 doc, | 158 doc, |
159 ArtifactNamespaceContext.NAMESPACE_URI, | 159 ArtifactNamespaceContext.NAMESPACE_URI, |
160 ArtifactNamespaceContext.NAMESPACE_PREFIX); | 160 ArtifactNamespaceContext.NAMESPACE_PREFIX); |
161 | 161 |
162 FLYSContext flysContext = getFlysContext(context); | 162 FLYSContext flysContext = FLYSUtils.getFlysContext(context); |
163 StateEngine engine = (StateEngine) flysContext.get( | 163 StateEngine engine = (StateEngine) flysContext.get( |
164 FLYSContext.STATE_ENGINE_KEY); | 164 FLYSContext.STATE_ENGINE_KEY); |
165 | 165 |
166 for (String stateId: stateIds) { | 166 for (String stateId: stateIds) { |
167 logger.debug("Append output modes for state: " + stateId); | 167 logger.debug("Append output modes for state: " + stateId); |