[Dive4elements-commits] [PATCH 1 of 2] ImportWst: Doc and getters

Wald Commits scm-commit at wald.intevation.org
Wed Mar 13 09:59:06 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1363165547 -3600
# Node ID db341e37d194352e76b8a25c84b862d25b3d05b0
# Parent  0d9ad1c432b8b1c1e54472d84a8f004aacd69652
ImportWst: Doc and getters.

diff -r 0d9ad1c432b8 -r db341e37d194 flys-backend/src/main/java/de/intevation/flys/importer/ImportWst.java
--- 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;
     }


More information about the Dive4elements-commits mailing list