comparison artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityModelArtifact.java @ 8202:e4606eae8ea5

sed src/**/*.java 's/logger/log/g'
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 12:58:17 +0200
parents 8d5ca5175038
children 5e38e2924c07
comparison
equal deleted inserted replaced
8201:4b8c5a08de04 8202:e4606eae8ea5
38 /** Artifact to access flow velocity models. */ 38 /** Artifact to access flow velocity models. */
39 public class FlowVelocityModelArtifact 39 public class FlowVelocityModelArtifact
40 extends StaticD4EArtifact 40 extends StaticD4EArtifact
41 implements FacetTypes 41 implements FacetTypes
42 { 42 {
43 /** The logger for this class. */ 43 /** The log for this class. */
44 private static Logger logger = 44 private static Logger log =
45 Logger.getLogger(FlowVelocityModelArtifact.class); 45 Logger.getLogger(FlowVelocityModelArtifact.class);
46 46
47 /** Artifact key name. */ 47 /** Artifact key name. */
48 private static final String NAME = "flowvelocitymodel"; 48 private static final String NAME = "flowvelocitymodel";
49 49
77 77
78 /** 78 /**
79 * Trivial Constructor. 79 * Trivial Constructor.
80 */ 80 */
81 public FlowVelocityModelArtifact() { 81 public FlowVelocityModelArtifact() {
82 logger.debug("FlowVelocityModelArtifact.FlowVelocityModelArtifact"); 82 log.debug("FlowVelocityModelArtifact.FlowVelocityModelArtifact");
83 } 83 }
84 84
85 85
86 /** Get artifact key name. */ 86 /** Get artifact key name. */
87 @Override 87 @Override
89 return NAME; 89 return NAME;
90 } 90 }
91 91
92 92
93 private Object getFlowVelocity() { 93 private Object getFlowVelocity() {
94 logger.debug("FlowVelocityModelArtifact.getFlowVelocity"); 94 log.debug("FlowVelocityModelArtifact.getFlowVelocity");
95 Integer id = getDataAsInteger(DATA_ID); 95 Integer id = getDataAsInteger(DATA_ID);
96 96
97 FlowVelocityModel model = FlowVelocityModel.getModel(id); 97 FlowVelocityModel model = FlowVelocityModel.getModel(id);
98 FlowVelocityData data = new FlowVelocityData(); 98 FlowVelocityData data = new FlowVelocityData();
99 99
142 Object context, 142 Object context,
143 CallMeta callMeta, 143 CallMeta callMeta,
144 Document data, 144 Document data,
145 List<Class> loadFacets) 145 List<Class> loadFacets)
146 { 146 {
147 logger.debug("FlowVelocityModelArtifact.setup"); 147 log.debug("FlowVelocityModelArtifact.setup");
148 148
149 state = newState(); 149 state = newState();
150 if (logger.isDebugEnabled()) { 150 if (log.isDebugEnabled()) {
151 logger.debug(XMLUtils.toString(data)); 151 log.debug(XMLUtils.toString(data));
152 } 152 }
153 153
154 List<Facet> fs = new ArrayList<Facet>(); 154 List<Facet> fs = new ArrayList<Facet>();
155 155
156 String code = getDatacageIDValue(data); 156 String code = getDatacageIDValue(data);
196 fs.add(tFacet); 196 fs.add(tFacet);
197 addFacets(state.getID(), fs); 197 addFacets(state.getID(), fs);
198 addStringData(DATA_ID, code); 198 addStringData(DATA_ID, code);
199 } 199 }
200 else { 200 else {
201 logger.error("No id given."); 201 log.error("No id given.");
202 } 202 }
203 203
204 spawnState(); 204 spawnState();
205 super.setup(identifier, factory, context, callMeta, data, loadFacets); 205 super.setup(identifier, factory, context, callMeta, data, loadFacets);
206 } 206 }
262 protected void initialize( 262 protected void initialize(
263 Artifact artifact, 263 Artifact artifact,
264 Object context, 264 Object context,
265 CallMeta meta) 265 CallMeta meta)
266 { 266 {
267 logger.debug("FlowVelocityModelArtifact.initialize"); 267 log.debug("FlowVelocityModelArtifact.initialize");
268 } 268 }
269 } 269 }
270 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : 270 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org