]> WPIA git - gigi.git/blob - src/org/cacert/gigi/output/template/IterableDataset.java
Implement a Template-Foreach (and use in "new email certificate")
[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 /**
6  * Represents some kind of data, that may be iterated over in a template.
7  */
8 public interface IterableDataset {
9         /**
10          * Moves to the next Dataset.
11          * 
12          * @param vars
13          *            the variables used in this template. They need to be updated
14          *            for each line.
15          * @return true, iff there was a data-line "installed". False of this set is
16          *         already empty.
17          */
18         public boolean next(Map<String, Object> vars);
19 }