comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java @ 425:ad74e1ba88ba

Allow to add Output objects to a state manually artifacts/trunk@5603 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Wed, 26 Sep 2012 13:26:38 +0000
parents f367be55dd35
children 402cd5464723
comparison
equal deleted inserted replaced
424:fdfa967699b4 425:ad74e1ba88ba
272 } 272 }
273 273
274 int size = outs.getLength(); 274 int size = outs.getLength();
275 275
276 for (int i = 0; i < size; i++) { 276 for (int i = 0; i < size; i++) {
277 outputs.add(buildOutput(outs.item(i))); 277 addOutput(buildOutput(outs.item(i)));
278 } 278 }
279 } 279 }
280 280
281 /**
282 * This methods allows subclasses to manually add outputs
283 *
284 * @param out The output to add
285 */
286 protected void addOutput(Output out) {
287 outputs.add(out);
288 }
281 289
282 /** 290 /**
283 * A helper method that creates an Output object based on the <i>out</i> 291 * A helper method that creates an Output object based on the <i>out</i>
284 * node. 292 * node.
285 * 293 *

http://dive4elements.wald.intevation.org