]> WPIA git - gigi.git/blob - src/org/cacert/gigi/output/template/IterableDataset.java
e95dce8f07a4eff86c4319e4e5619e822af4fd46
[gigi.git] / src / org / cacert / gigi / output / template / IterableDataset.java
1 package org.cacert.gigi.output.template;
2
3 import java.util.Map;
4
5 import org.cacert.gigi.localisation.Language;
6
7 /**
8  * Represents some kind of data, that may be iterated over in a template.
9  */
10 public interface IterableDataset {
11
12     /**
13      * Moves to the next Dataset.
14      * 
15      * @param l
16      *            the language for l10n-ed strings
17      * @param vars
18      *            the variables used in this template. They need to be updated
19      *            for each line.
20      * @return true, iff there was a data-line "installed". False of this set is
21      *         already empty.
22      */
23     public boolean next(Language l, Map<String, Object> vars);
24 }