changeset 731:1efb6a66c7d9

Added Objecttype Geometry for the Validation of Inputdata. gnv-artifacts/trunk@769 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 15 Mar 2010 12:28:49 +0000
parents 452fad121560
children 1a0ed4c521bd
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Mon Mar 15 11:13:21 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Mon Mar 15 12:28:49 2010 +0000
@@ -1,3 +1,9 @@
+2010-03-15  Tim Englich  <tim.englich@intevation.de>
+
+	* src/main/java/de/intevation/gnv/utils/InputValidator.java (isInputValid): 
+	  Added Objecttype Geometry for the Validation of Inputdata. Geometry will 
+	  be validated in the same way as Pointobjects.
+
 2010-03-15  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue198
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java	Mon Mar 15 11:13:21 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java	Mon Mar 15 12:28:49 2010 +0000
@@ -81,7 +81,7 @@
             } else if ("Date".equalsIgnoreCase(type)) {
                 valid = GenericValidator.isDate(values[i].trim(),
                         DateUtils.DATE_PATTERN, true);
-            } else if ("Point".equalsIgnoreCase(type)) {
+            } else if ("Point".equalsIgnoreCase(type) || "Geometry".equals(type)) {
                 valid = GenericValidator.matchRegexp(values[i], "[0-9]"); // TODO:
                                                                           // FIXME:
                                                                           // VALIDATE

http://dive4elements.wald.intevation.org