comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.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 d8992459b408
children
comparison
equal deleted inserted replaced
4496:d8992459b408 4497:a2735a4bf75e
93 93
94 /** The data that have been inserted into this artifact. */ 94 /** The data that have been inserted into this artifact. */
95 private Map<String, StateData> data; 95 private Map<String, StateData> data;
96 96
97 /** Mapping of state names to created facets. */ 97 /** Mapping of state names to created facets. */
98 protected Map<String, List<Facet>> facets; 98 private Map<String, List<Facet>> facets;
99 99
100 /** 100 /**
101 * Used to generates "view" on the facets (hides facets not matching the 101 * Used to generates "view" on the facets (hides facets not matching the
102 * filter in output of collection); out -&gt; facets. 102 * filter in output of collection); out -&gt; facets.
103 */ 103 */
1221 return new ArrayList<Output>(); 1221 return new ArrayList<Output>();
1222 } 1222 }
1223 1223
1224 String stateId = state.getID(); 1224 String stateId = state.getID();
1225 1225
1226 List<Facet> fs = facets.get(stateId); 1226 List<Facet> fs = getFacets(stateId);
1227 1227
1228 if (fs == null || fs.isEmpty()) { 1228 if (fs == null || fs.isEmpty()) {
1229 if (debug) { 1229 if (debug) {
1230 log.debug("No facets found."); 1230 log.debug("No facets found.");
1231 } 1231 }

http://dive4elements.wald.intevation.org