Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/validation/rules/probe/TimeProbeentnahmeBegin.java @ 711:3ec358698b4d
Code style and documentation.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 22 Jul 2015 16:03:03 +0200 |
parents | 7c1f9409764a |
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 java.sql.Timestamp; | 10 import java.sql.Timestamp; |
4 import java.util.Date; | 11 import java.util.Date; |
5 | 12 |
6 import de.intevation.lada.model.land.LProbe; | 13 import de.intevation.lada.model.land.LProbe; |
7 import de.intevation.lada.validation.Violation; | 14 import de.intevation.lada.validation.Violation; |
8 import de.intevation.lada.validation.annotation.ValidationRule; | 15 import de.intevation.lada.validation.annotation.ValidationRule; |
9 import de.intevation.lada.validation.rules.Rule; | 16 import de.intevation.lada.validation.rules.Rule; |
10 | 17 |
18 /** | |
19 * Validation rule for probe. | |
20 * Validates if the "probeentnahmeBeginn" exists an if "probeentnahmeBeginn is | |
21 * in future or after "probeentnahmeEnde". | |
22 * | |
23 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> | |
24 */ | |
11 @ValidationRule("Probe") | 25 @ValidationRule("Probe") |
12 public class TimeProbeentnahmeBegin implements Rule { | 26 public class TimeProbeentnahmeBegin implements Rule { |
13 | 27 |
14 @Override | 28 @Override |
15 public Violation execute(Object object) { | 29 public Violation execute(Object object) { |