comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java @ 4497:a2735a4bf75e

Change facets member variable to private Don't allow direct access to the facets member variable. Use the addFacets and getFacets methods instead.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 14 Nov 2012 11:15:57 +0100
parents 6153c50f78cf
children
comparison
equal deleted inserted replaced
4496:d8992459b408 4497:a2735a4bf75e
154 Facet rpFacet = new RelativePointFacet(facetDescription); 154 Facet rpFacet = new RelativePointFacet(facetDescription);
155 155
156 fs.add(wKmsFacet); 156 fs.add(wKmsFacet);
157 fs.add(csFacet); 157 fs.add(csFacet);
158 fs.add(rpFacet); 158 fs.add(rpFacet);
159 facets.put(state.getID(), fs); 159 addFacets(state.getID(), fs);
160 } 160 }
161 } 161 }
162 162
163 spawnState(); 163 spawnState();
164 super.setup(identifier, factory, context, callMeta, data); 164 super.setup(identifier, factory, context, callMeta, data);
169 * Initialize the static state with output. 169 * Initialize the static state with output.
170 * @return static state 170 * @return static state
171 */ 171 */
172 protected State spawnState() { 172 protected State spawnState() {
173 state = new StaticState(STATIC_STATE_NAME); 173 state = new StaticState(STATIC_STATE_NAME);
174 List<Facet> fs = facets.get(STATIC_STATE_NAME); 174 List<Facet> fs = getFacets(STATIC_STATE_NAME);
175 DefaultOutput output = new DefaultOutput( 175 DefaultOutput output = new DefaultOutput(
176 "general", 176 "general",
177 "general", "image/png", 177 "general", "image/png",
178 fs, 178 fs,
179 "chart"); 179 "chart");

http://dive4elements.wald.intevation.org