Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/validation/LProbeValidator.java @ 96:025c6e30be9e
Codestyle
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 11 Jun 2013 08:30:51 +0200 |
parents | ccfcdb404f9a |
children | 6883be216e64 |
comparison
equal
deleted
inserted
replaced
95:8b48dabb3582 | 96:025c6e30be9e |
---|---|
7 | 7 |
8 import de.intevation.lada.model.LProbe; | 8 import de.intevation.lada.model.LProbe; |
9 | 9 |
10 /** | 10 /** |
11 * Validator for LProbe objects. | 11 * Validator for LProbe objects. |
12 * | 12 * |
13 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> | 13 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> |
14 */ | 14 */ |
15 @Named("lprobevalidator") | 15 @Named("lprobevalidator") |
16 public class LProbeValidator | 16 public class LProbeValidator |
17 implements Validator | 17 implements Validator |
22 */ | 22 */ |
23 private Map<String, Integer> warnings; | 23 private Map<String, Integer> warnings; |
24 | 24 |
25 /** | 25 /** |
26 * Validate a LProbe object. | 26 * Validate a LProbe object. |
27 * | 27 * |
28 * @param probe The LProbe object. | 28 * @param probe The LProbe object. |
29 */ | 29 */ |
30 @Override | 30 @Override |
31 public void validate(Object probe) | 31 public void validate(Object probe) |
32 throws ValidationException { | 32 throws ValidationException { |
57 ValidationException ve = new ValidationException(errors); | 57 ValidationException ve = new ValidationException(errors); |
58 throw ve; | 58 throw ve; |
59 } | 59 } |
60 | 60 |
61 /** | 61 /** |
62 * Getter for warnings occured while validating the LProbe. | 62 * Getter for warnings occurred while validating the LProbe. |
63 * | 63 * |
64 * @return Map of field - warning code pairs. | 64 * @return Map of field - warning code pairs. |
65 */ | 65 */ |
66 @Override | 66 @Override |
67 public Map<String, Integer> getWarnings() { | 67 public Map<String, Integer> getWarnings() { |
68 return warnings; | 68 return warnings; |