diff src/main/java/de/intevation/lada/validation/LMessungValidator.java @ 263:2098db2e8fbd M1

Code documentation.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 17 Jul 2013 09:40:53 +0200
parents 0de24f5e7c01
children 53417b61391c
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/LMessungValidator.java	Wed Jul 17 09:40:35 2013 +0200
+++ b/src/main/java/de/intevation/lada/validation/LMessungValidator.java	Wed Jul 17 09:40:53 2013 +0200
@@ -33,6 +33,16 @@
     @Named("lmessungrepository")
     private Repository messungRepository;
 
+    /**
+     * Validate a LMessung object.
+     *
+     * @param object    The object to validate.
+     * @param update    The database operation.
+     *                  TRUE indicates that the object should be updated, FALSE
+     *                  if the object is a new Object.
+     * @return Map containing warnings.
+     * @throws ValidationException
+     */
     @Override
     public Map<String, Integer> validate(Object object, boolean update)
     throws ValidationException {
@@ -52,6 +62,13 @@
         return warnings;
     }
 
+    /**
+     * Check if the object has a 'Nebenproben Nr.'.
+     *
+     * @param messung   The LMessung object.
+     * @param warnings  The map containing warnings.
+     * @throws ValidationException
+     */
     private void validateHasNebenprobenNr(
         LMessung messung,
         Map<String, Integer> warnings)
@@ -62,6 +79,13 @@
         }
     }
 
+    /**
+     * Check if the 'Nebenproben Nr' is unique.
+     *
+     * @param messung   The LMessung object.
+     * @param warnings  The map containing warnings.
+     * @throws ValidationException
+     */
     private void validateUniqueNebenprobenNr(
         LMessung messung,
         Map<String, Integer> warnings)
@@ -85,6 +109,13 @@
         }
     }
 
+    /**
+     * Check if the 'Messdatum' is after the 'Probennahmedatum'.
+     *
+     * @param messung   The LMessung object.
+     * @param warnings  The map containing warinings. 
+     * @throws ValidationException
+     */
     private void validateDatum(
         LMessung messung,
         Map<String, Integer> warnings)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)