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

Code documentation.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 17 Jul 2013 09:40:53 +0200
parents 0de24f5e7c01
children 183f8116d9a6
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/LMesswertValidator.java	Wed Jul 17 09:40:35 2013 +0200
+++ b/src/main/java/de/intevation/lada/validation/LMesswertValidator.java	Wed Jul 17 09:40:53 2013 +0200
@@ -13,7 +13,15 @@
 public class LMesswertValidator
 implements Validator
 {
-
+    /**
+     * Validate a LMesswert object.
+     *
+     * @param object    The LMesswert object.
+     * @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.
+     */
     @Override
     public Map<String, Integer> validate(Object object, boolean update)
     throws ValidationException {
@@ -29,6 +37,14 @@
         return null;
     }
 
+    /**
+     * Check if the LMesswert has a 'Messunsicherheit' or if the the value
+     * is lower than the 'Nachweisgrenze'.
+     *
+     * @param messwert  The LMesswert object.
+     * @param warnings  The map containing warnings.
+     * @throws ValidationException
+     */
     private void validateMessunsicherheit(
         LMesswert messwert,
         Map<String, Integer> warnings)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)