comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/MapArtifact.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 8e66293c5369
children ad0990a82ab8
comparison
equal deleted inserted replaced
4496:d8992459b408 4497:a2735a4bf75e
92 if (list == null || list.isEmpty()) { 92 if (list == null || list.isEmpty()) {
93 logger.debug("-> No output modes for this state."); 93 logger.debug("-> No output modes for this state.");
94 continue; 94 continue;
95 } 95 }
96 96
97 List<Facet> fs = facets.get(stateId); 97 List<Facet> fs = getFacets(stateId);
98 98
99 if (fs == null || fs.isEmpty()) { 99 if (fs == null || fs.isEmpty()) {
100 logger.debug("No facets for previous state found."); 100 logger.debug("No facets for previous state found.");
101 continue; 101 continue;
102 } 102 }
114 List<Output> list = cur.getOutputs(); 114 List<Output> list = cur.getOutputs();
115 if (list != null && list.size() > 0) { 115 if (list != null && list.size() > 0) {
116 logger.debug( 116 logger.debug(
117 "Append output modes for current state: " + cur.getID()); 117 "Append output modes for current state: " + cur.getID());
118 118
119 List<Facet> fs = facets.get(cur.getID()); 119 List<Facet> fs = getFacets(cur.getID());
120 120
121 if (fs != null && fs.size() > 0) { 121 if (fs != null && fs.size() > 0) {
122 List<Output> generated = generateOutputs(list, fs); 122 List<Output> generated = generateOutputs(list, fs);
123 123
124 logger.debug("Found " + fs.size() + " current facets."); 124 logger.debug("Found " + fs.size() + " current facets.");

http://dive4elements.wald.intevation.org