Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.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 | e0354aed0cd3 |
children | b195fede1c3b |
comparison
equal
deleted
inserted
replaced
4496:d8992459b408 | 4497:a2735a4bf75e |
---|---|
95 { | 95 { |
96 logger.debug("MainValuesArtifact.setup"); | 96 logger.debug("MainValuesArtifact.setup"); |
97 state = new StaticState(STATIC_STATE_NAME); | 97 state = new StaticState(STATIC_STATE_NAME); |
98 | 98 |
99 List<Facet> fs = new ArrayList<Facet>(); | 99 List<Facet> fs = new ArrayList<Facet>(); |
100 facets.put(state.getID(), fs); | 100 addFacets(state.getID(), fs); |
101 spawnState(); | 101 spawnState(); |
102 super.setup(identifier, factory, context, callMeta, data); | 102 super.setup(identifier, factory, context, callMeta, data); |
103 String restriction = getDatacageIDValue(data); | 103 String restriction = getDatacageIDValue(data); |
104 logger.debug("mainvalue restriction " + restriction); | 104 logger.debug("mainvalue restriction " + restriction); |
105 boolean restricted = restriction.endsWith("q") || restriction.endsWith("w"); | 105 boolean restricted = restriction.endsWith("q") || restriction.endsWith("w"); |
154 /** | 154 /** |
155 * Create "the" state. | 155 * Create "the" state. |
156 */ | 156 */ |
157 protected State spawnState() { | 157 protected State spawnState() { |
158 state = new StaticState(STATIC_STATE_NAME); | 158 state = new StaticState(STATIC_STATE_NAME); |
159 List<Facet> fs = (List<Facet>) facets.get(STATIC_STATE_NAME); | 159 List<Facet> fs = (List<Facet>) getFacets(STATIC_STATE_NAME); |
160 | 160 |
161 DefaultOutput mainValuesOutput = new DefaultOutput( | 161 DefaultOutput mainValuesOutput = new DefaultOutput( |
162 "computed_discharge_curve", | 162 "computed_discharge_curve", |
163 "output.computed_discharge_curve", "image/png", | 163 "output.computed_discharge_curve", "image/png", |
164 fs, | 164 fs, |