comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/CrossSectionArtifact.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 c3cd414982fe
children c7133c1f8ede
comparison
equal deleted inserted replaced
4496:d8992459b408 4497:a2735a4bf75e
139 addStringData(DATA_IS_MASTER, newString); 139 addStringData(DATA_IS_MASTER, newString);
140 140
141 StaticState state = (StaticState) getCurrentState(context); 141 StaticState state = (StaticState) getCurrentState(context);
142 142
143 if (!fs.isEmpty()) { 143 if (!fs.isEmpty()) {
144 facets.put(getCurrentStateId(), fs); 144 addFacets(getCurrentStateId(), fs);
145 } 145 }
146 } 146 }
147 147
148 148
149 /** Copy km where master-artifact "starts". */ 149 /** Copy km where master-artifact "starts". */
178 /** 178 /**
179 * Create and return a new StaticState with charting output. 179 * Create and return a new StaticState with charting output.
180 */ 180 */
181 @Override 181 @Override
182 public State getCurrentState(Object cc) { 182 public State getCurrentState(Object cc) {
183 final List<Facet> fs = facets.get(getCurrentStateId()); 183 final List<Facet> fs = getFacets(getCurrentStateId());
184 184
185 StaticState state = new StaticState(STATIC_STATE_NAME) { 185 StaticState state = new StaticState(STATIC_STATE_NAME) {
186 @Override 186 @Override
187 public Object staticCompute(List<Facet> facets) { 187 public Object staticCompute(List<Facet> facets) {
188 if (facets != null) { 188 if (facets != null) {

http://dive4elements.wald.intevation.org