diff gnv-artifacts/src/main/java/de/intevation/gnv/exports/DefaultProfile.java @ 233:2ceb4bf51cba

Added DataCollector which collects data used for exports. gnv-artifacts/trunk@301 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 09 Nov 2009 09:43:52 +0000
parents f68ffbe974a0
children 75da91eca29f
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/exports/DefaultProfile.java	Mon Nov 09 08:55:01 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/exports/DefaultProfile.java	Mon Nov 09 09:43:52 2009 +0000
@@ -1,5 +1,8 @@
 package de.intevation.gnv.exports;
 
+import de.intevation.gnv.geobackend.base.Result;
+
+
 /**
  * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
  * @author Ingo Weinzierl (ingo.weinzierl@intevation.de)
@@ -7,25 +10,24 @@
 public class DefaultProfile
 implements   Export.Profile
 {
-    protected String [] names;
-    protected char      separator;
-    protected char      escapeCharacter;
-    protected char      quoteCharacter;
-    protected String    type;
-    protected String    encoding;
+    protected Export.DataCollector collector;
+    protected String []            names;
+    protected char                 separator;
+    protected char                 escapeCharacter;
+    protected char                 quoteCharacter;
+    protected String               type;
+    protected String               encoding;
 
     public DefaultProfile() {
     }
 
     public DefaultProfile(
-        String [] names, 
-        char      separator,
-        char      escapeCharacter,
-        char      quoteCharacter,
-        String    type,
-        String    encoding
+        char                 separator,
+        char                 escapeCharacter,
+        char                 quoteCharacter,
+        String               type,
+        String               encoding
     ) {
-        this.names           = names;
         this.separator       = separator;
         this.escapeCharacter = escapeCharacter;
         this.quoteCharacter  = quoteCharacter;
@@ -33,14 +35,6 @@
         this.encoding        = encoding;
     }
 
-    public int numberColumns() {
-        return names.length;
-    }
-
-    public String getHeader(int index) {
-        return names[index];
-    }
-
     public String toString(int index, String value) {
         return value;
     }

http://dive4elements.wald.intevation.org