comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.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 4774902b0389
children d440057b36f7
comparison
equal deleted inserted replaced
4496:d8992459b408 4497:a2735a4bf75e
94 List<Facet> fs = new ArrayList<Facet>(); 94 List<Facet> fs = new ArrayList<Facet>();
95 DefaultState state = (DefaultState) getCurrentState(context); 95 DefaultState state = (DefaultState) getCurrentState(context);
96 state.computeInit(this, hash(), context, meta, fs); 96 state.computeInit(this, hash(), context, meta, fs);
97 if (!fs.isEmpty()) { 97 if (!fs.isEmpty()) {
98 logger.debug("Facets to add in WaterlevelArtifact.initialize ."); 98 logger.debug("Facets to add in WaterlevelArtifact.initialize .");
99 facets.put(getCurrentStateId(), fs); 99 addFacets(getCurrentStateId(), fs);
100 } 100 }
101 else { 101 else {
102 logger.debug("No facets to add in WaterlevelArtifact.initialize (" 102 logger.debug("No facets to add in WaterlevelArtifact.initialize ("
103 + state.getID() + ")."); 103 + state.getID() + ").");
104 } 104 }

http://dive4elements.wald.intevation.org