]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/IterableDataset.java
upd: Normalize tailing dots in "output.template"-Documentation
[gigi.git] / src / org / cacert / gigi / output / template / IterableDataset.java
index d908fccc59f1ffcdf4245e68d22c8df72222edf2..26405a54cb4c998cca1b331bb0d9fe9147b15fa9 100644 (file)
@@ -2,18 +2,24 @@ package org.cacert.gigi.output.template;
 
 import java.util.Map;
 
+import org.cacert.gigi.localisation.Language;
+
 /**
- * Represents some kind of data, that may be iterated over in a template.
+ * Represents some kind of data, that may be iterated over in a template using
+ * the <code>foreach</code> statement.
  */
 public interface IterableDataset {
-       /**
-        * Moves to the next Dataset.
-        * 
-        * @param vars
-        *            the variables used in this template. They need to be updated
-        *            for each line.
-        * @return true, iff there was a data-line "installed". False of this set is
-        *         already empty.
-        */
-       public boolean next(Map<String, Object> vars);
+
+    /**
+     * Moves to the next Dataset.
+     * 
+     * @param l
+     *            the language for l10n-ed strings.
+     * @param vars
+     *            the variables used in this template. They need to be updated
+     *            for each line.
+     * @return true, iff there was a data-line "installed". False of this set is
+     *         already empty.
+     */
+    public boolean next(Language l, Map<String, Object> vars);
 }