comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.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 001e35349203
children
comparison
equal deleted inserted replaced
4496:d8992459b408 4497:a2735a4bf75e
131 Resources.getMsg( 131 Resources.getMsg(
132 callMeta, 132 callMeta,
133 wkmsName, 133 wkmsName,
134 wkmsName)); 134 wkmsName));
135 fs.add(wQFacet); 135 fs.add(wQFacet);
136 facets.put(state.getID(), fs); 136 addFacets(state.getID(), fs);
137 } 137 }
138 } 138 }
139 else { 139 else {
140 logger.warn("WQKmsInterpolArtifact: no code"); 140 logger.warn("WQKmsInterpolArtifact: no code");
141 } 141 }
149 * Initialize the static state with output. 149 * Initialize the static state with output.
150 * @return static state 150 * @return static state
151 */ 151 */
152 protected State spawnState() { 152 protected State spawnState() {
153 state = new StaticState(STATIC_STATE_NAME); 153 state = new StaticState(STATIC_STATE_NAME);
154 List<Facet> fs = facets.get(STATIC_STATE_NAME); 154 List<Facet> fs = getFacets(STATIC_STATE_NAME);
155 DefaultOutput output = new DefaultOutput( 155 DefaultOutput output = new DefaultOutput(
156 "general", 156 "general",
157 "general", 157 "general",
158 "image/png", 158 "image/png",
159 fs, 159 fs,

http://dive4elements.wald.intevation.org