comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/CalculationResult.java @ 3468:f37e7e8907cb

merged flys-artifacts/2.8.1
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:39 +0200
parents a441be7f1589
children
comparison
equal deleted inserted replaced
3387:5ffad8bde8ad 3468:f37e7e8907cb
1 package de.intevation.flys.artifacts.model;
2
3 import java.io.Serializable;
4
5 /**
6 * Wraps result(s) of a Calculation and eventual error reports.
7 */
8 public class CalculationResult
9 implements Serializable
10 {
11 protected Object data;
12 protected Calculation report;
13
14 public CalculationResult() {
15 }
16
17 public CalculationResult(Calculation report) {
18 this(null, report);
19 }
20
21 /**
22 * @param report report (e.g. error messages).
23 */
24 public CalculationResult(Object data, Calculation report) {
25 this.data = data;
26 this.report = report;
27 }
28
29 public Object getData() {
30 return data;
31 }
32
33 public void setData(Object data) {
34 this.data = data;
35 }
36
37 public Calculation getReport() {
38 return report;
39 }
40
41 public void setReport(Calculation report) {
42 this.report = report;
43 }
44 }
45 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org