Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/data/importer/ReportData.java @ 366:567ce7697fc7 0.5
Code documentation.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 10 Sep 2013 15:55:54 +0200 |
parents | b6f770956cae |
children | 183f8116d9a6 |
comparison
equal
deleted
inserted
replaced
365:fab80595ed55 | 366:567ce7697fc7 |
---|---|
1 package de.intevation.lada.data.importer; | 1 package de.intevation.lada.data.importer; |
2 | 2 |
3 | 3 /** |
4 * Container for error or warning messages send to the client. | |
5 * | |
6 * Errors and warnings are specified by the key-value pair that caused the problem and a code. | |
7 * The code can be | |
8 * 670: Parser error | |
9 * 671: existing | |
10 * 672: duplicated entry | |
11 * 673: missing | |
12 * 674: date error | |
13 * or any validation code. | |
14 * | |
15 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> | |
16 */ | |
4 public class ReportData | 17 public class ReportData |
5 { | 18 { |
6 private String key; | 19 private String key; |
7 private String value; | 20 private String value; |
8 private Integer code; | 21 private Integer code; |
9 | 22 |
23 /** | |
24 * Default constructor. | |
25 */ | |
10 public ReportData() { | 26 public ReportData() { |
11 } | 27 } |
12 | 28 |
29 /** | |
30 * Constructor to create a {@link ReportData} object with data. | |
31 * @param key The key caused the error/warning. | |
32 * @param value The value caused the error/warning. | |
33 * @param code The code specifying the error/warning. | |
34 */ | |
13 public ReportData(String key, String value, Integer code) { | 35 public ReportData(String key, String value, Integer code) { |
14 this.key = key; | 36 this.key = key; |
15 this.value = value; | 37 this.value = value; |
16 this.code = code; | 38 this.code = code; |
17 } | 39 } |