diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/BedHeightAccess.java @ 3258:3c006a53e551

Replaced tabs with four spaces each. flys-artifacts/trunk@4895 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 08 Jul 2012 08:43:13 +0000
parents cdbc457e23e2
children 9422b559b2d5
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/BedHeightAccess.java	Sun Jul 08 07:56:46 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/BedHeightAccess.java	Sun Jul 08 08:43:13 2012 +0000
@@ -10,101 +10,100 @@
 
 public class BedHeightAccess extends Access {
 
-	private static final Logger logger = Logger.getLogger(BedHeightAccess.class);
-
+    private static final Logger logger = Logger.getLogger(BedHeightAccess.class);
 
-	private int[] singleIDs;
-	private int[] epochIDs;
+    private int[] singleIDs;
+    private int[] epochIDs;
 
-	private Double lowerKM;
-	private Double upperKM;
+    private Double lowerKM;
+    private Double upperKM;
 
 
-	public BedHeightAccess(FLYSArtifact artifact) {
-		super(artifact);
-	}
+    public BedHeightAccess(FLYSArtifact artifact) {
+        super(artifact);
+    }
 
 
-	public Double getLowerKM() {
-    	if (lowerKM == null) {
-    		lowerKM = getDouble("ld_from");
-    	}
+    public Double getLowerKM() {
+        if (lowerKM == null) {
+            lowerKM = getDouble("ld_from");
+        }
 
-    	return lowerKM;
+        return lowerKM;
     }
 
 
     public Double getUpperKM() {
-    	if (upperKM == null) {
-    		upperKM = getDouble("ld_to");
-    	}
+        if (upperKM == null) {
+            upperKM = getDouble("ld_to");
+        }
 
-    	return upperKM;
+        return upperKM;
     }
 
 
     public int[] getBedHeightSingleIDs() {
-    	if (singleIDs == null) {
-	        String data = getString("soundings");
-
-	        if (data == null) {
-	            logger.warn("No 'soundings' parameter specified!");
-	            return null;
-	        }
-
-	        String[] parts = data.split(";");
-
-	        TIntArrayList ids = new TIntArrayList();
+        if (singleIDs == null) {
+            String data = getString("soundings");
 
-	        for (String part: parts) {
-	            if (part.indexOf(SoundingsSelect.PREFIX_SINGLE) >= 0) {
-	                String tmp = part.replace(SoundingsSelect.PREFIX_SINGLE, "");
+            if (data == null) {
+                logger.warn("No 'soundings' parameter specified!");
+                return null;
+            }
 
-	                try {
-	                    ids.add(Integer.parseInt(tmp));
-	                }
-	                catch (NumberFormatException nfe) {
-	                    logger.warn("Cannot parse int from string: '" + tmp + "'");
-	                }
-	            }
-	        }
+            String[] parts = data.split(";");
 
-	        singleIDs = ids.toNativeArray();
-    	}
+            TIntArrayList ids = new TIntArrayList();
 
-    	return singleIDs;
+            for (String part: parts) {
+                if (part.indexOf(SoundingsSelect.PREFIX_SINGLE) >= 0) {
+                    String tmp = part.replace(SoundingsSelect.PREFIX_SINGLE, "");
+
+                    try {
+                        ids.add(Integer.parseInt(tmp));
+                    }
+                    catch (NumberFormatException nfe) {
+                        logger.warn("Cannot parse int from string: '" + tmp + "'");
+                    }
+                }
+            }
+
+            singleIDs = ids.toNativeArray();
+        }
+
+        return singleIDs;
     }
 
 
     public int[] getBedHeightEpochIDs() {
-    	if (epochIDs == null) {
-	        String data = getString("soundings");
-
-	        if (data == null) {
-	            logger.warn("No 'soundings' parameter specified!");
-	            return null;
-	        }
-
-	        String[] parts = data.split(";");
-
-	        TIntArrayList ids = new TIntArrayList();
+        if (epochIDs == null) {
+            String data = getString("soundings");
 
-	        for (String part: parts) {
-	            if (part.indexOf(SoundingsSelect.PREFIX_EPOCH) >= 0) {
-	                String tmp = part.replace(SoundingsSelect.PREFIX_EPOCH, "");
+            if (data == null) {
+                logger.warn("No 'soundings' parameter specified!");
+                return null;
+            }
 
-	                try {
-	                    ids.add(Integer.parseInt(tmp));
-	                }
-	                catch (NumberFormatException nfe) {
-	                    logger.warn("Cannot parse int from string: '" + tmp + "'");
-	                }
-	            }
-	        }
+            String[] parts = data.split(";");
 
-	        epochIDs = ids.toNativeArray();
-    	}
+            TIntArrayList ids = new TIntArrayList();
 
-    	return epochIDs;
+            for (String part: parts) {
+                if (part.indexOf(SoundingsSelect.PREFIX_EPOCH) >= 0) {
+                    String tmp = part.replace(SoundingsSelect.PREFIX_EPOCH, "");
+
+                    try {
+                        ids.add(Integer.parseInt(tmp));
+                    }
+                    catch (NumberFormatException nfe) {
+                        logger.warn("Cannot parse int from string: '" + tmp + "'");
+                    }
+                }
+            }
+
+            epochIDs = ids.toNativeArray();
+        }
+
+        return epochIDs;
     }
 }

http://dive4elements.wald.intevation.org