Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/validation/rules/probe/HasTestdatensatz.java @ 711:3ec358698b4d
Code style and documentation.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 22 Jul 2015 16:03:03 +0200 |
parents | 3d38d1fe9e88 |
children | 1c41c7b8f7c2 |
comparison
equal
deleted
inserted
replaced
710:2ae27dde4823 | 711:3ec358698b4d |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
1 package de.intevation.lada.validation.rules.probe; | 8 package de.intevation.lada.validation.rules.probe; |
2 | 9 |
3 import de.intevation.lada.model.land.LProbe; | 10 import de.intevation.lada.model.land.LProbe; |
4 import de.intevation.lada.validation.Violation; | 11 import de.intevation.lada.validation.Violation; |
5 import de.intevation.lada.validation.annotation.ValidationRule; | 12 import de.intevation.lada.validation.annotation.ValidationRule; |
6 import de.intevation.lada.validation.rules.Rule; | 13 import de.intevation.lada.validation.rules.Rule; |
7 | 14 |
15 /** | |
16 * Validation rule for probe. | |
17 * Validates if the field "test" was set. | |
18 * | |
19 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> | |
20 */ | |
8 @ValidationRule("Probe") | 21 @ValidationRule("Probe") |
9 public class HasTestdatensatz implements Rule { | 22 public class HasTestdatensatz implements Rule { |
10 | 23 |
11 @Override | 24 @Override |
12 public Violation execute(Object object) { | 25 public Violation execute(Object object) { |