diff gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java @ 778:9a828e5a2390

Removed trailing whitespace gnv-artifacts/trunk@851 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 29 Mar 2010 07:58:51 +0000
parents b81f6f896668
children b1f5f2a8840f
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java	Fri Mar 26 15:31:20 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/utils/InputValidator.java	Mon Mar 29 07:58:51 2010 +0000
@@ -19,15 +19,15 @@
 
 /**
  * @author Tim Englich <tim.englich@intevation.de>
- * 
+ *
  */
 public class InputValidator {
     /**
      * the logger, used to log exceptions and additonaly information
      */
     private static Logger log = Logger.getLogger(InputValidator.class);
-    
-    
+
+
     public final static String NODATASELECTEDVALUE = "n/n";
 
     /**
@@ -61,14 +61,14 @@
         log.debug("Is valid? " + returnValue);
         return returnValue;
     }
-    
+
     public boolean isInputValid(String input, String type) {
         log.debug("InputValidator.isInputValid " + input + " " + type);
         boolean returnValue = false;
         String[] values = input.split(",");
         for (int i = 0; i < values.length; i++) {
             boolean valid;
-            
+
             if (NODATASELECTEDVALUE.equals(values[i].trim())){
                 valid = true;
             } else if ("Integer".equalsIgnoreCase(type)) {
@@ -113,11 +113,11 @@
         log.debug("Is valid? " + returnValue);
         return returnValue;
     }
-    
-    
+
+
     public Point getPointValue(String value) throws ValidationException{
         log.debug("InputValidator.getPointValue " + value);
-        
+
         if (value.toLowerCase().startsWith("point")){
             try {
                 return (Point)new WKTReader().read(value);
@@ -127,7 +127,7 @@
             }
         }else{
             String[] s, p;
-            
+
             double x=0,y=0;
             log.info("Position :"+value);
             s = value.split(" ");
@@ -145,8 +145,8 @@
             }
             catch (Exception e) {
                 throw new ValidationException("Kein N|S oder nicht im ersten Substring, zB 56n42");
-            
-            } 
+
+            }
             p = s[1].split("[eEwW]");
             try {
                 if (p.length ==1)
@@ -158,7 +158,7 @@
             }
             catch (Exception e) {
                 throw new ValidationException("Kein E|W oder nicht im zweiten Substring");
-            } 
+            }
             return new GeometryFactory().createPoint(new Coordinate(x,y));
         }
     }

http://dive4elements.wald.intevation.org