changeset 5263:db341e37d194

ImportWst: Doc and getters.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 13 Mar 2013 10:05:47 +0100
parents 0d9ad1c432b8
children 731030b69c7e
files flys-backend/src/main/java/de/intevation/flys/importer/ImportWst.java
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportWst.java	Wed Mar 13 09:21:35 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportWst.java	Wed Mar 13 10:05:47 2013 +0100
@@ -53,6 +53,7 @@
         this.description = description;
     }
 
+    /** Create columns that can be accessed with getColumn. */
     public void setNumberColumns(int numColumns) {
         for (int i = 0; i < numColumns; ++i) {
             columns.add(new ImportWstColumn(this, null, null, i));
@@ -67,6 +68,15 @@
         return columns.get(index);
     }
 
+    public List<ImportWstColumn> getColumns() {
+        return columns;
+    }
+
+    /** Adds a column. Assumes that columns wst is this instance. */
+    public void addColumn(ImportWstColumn column) {
+        columns.add(column);
+    }
+
     public ImportUnit getUnit() {
         return unit;
     }

http://dive4elements.wald.intevation.org