diff gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java @ 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 3ddc22aab764
children b81f6f896668
line wrap: on
line diff
--- 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