comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/GaugeDischargeArtifact.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 7500c7fbfaa9
children
comparison
equal deleted inserted replaced
4496:d8992459b408 4497:a2735a4bf75e
100 DefaultState state = (DefaultState) getCurrentState(context); 100 DefaultState state = (DefaultState) getCurrentState(context);
101 state.computeInit(this, hash(), context, meta, fs); 101 state.computeInit(this, hash(), context, meta, fs);
102 if (!fs.isEmpty()) { 102 if (!fs.isEmpty()) {
103 logger.debug("Facets to add in GaugeDischargeArtifact.initialize. (" 103 logger.debug("Facets to add in GaugeDischargeArtifact.initialize. ("
104 + state.getID() + "/ " + getCurrentStateId() + ")."); 104 + state.getID() + "/ " + getCurrentStateId() + ").");
105 facets.put(getCurrentStateId(), fs); 105 addFacets(getCurrentStateId(), fs);
106 } 106 }
107 else { 107 else {
108 logger.debug("No facets to add in GaugeDischargeArtifact.initialize (" 108 logger.debug("No facets to add in GaugeDischargeArtifact.initialize ("
109 + state.getID() + "/ "+getCurrentStateId()+")."); 109 + state.getID() + "/ "+getCurrentStateId()+").");
110 } 110 }

http://dive4elements.wald.intevation.org