X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Foutput%2Ftemplate%2FIterableDataset.java;fp=src%2Forg%2Fcacert%2Fgigi%2Foutput%2Ftemplate%2FIterableDataset.java;h=d908fccc59f1ffcdf4245e68d22c8df72222edf2;hp=0000000000000000000000000000000000000000;hb=ca82909d6bb910769eb756058d51d55e6d257914;hpb=f732d3e0c2970f7fef8b6c0d067a1f430cf95bfc diff --git a/src/org/cacert/gigi/output/template/IterableDataset.java b/src/org/cacert/gigi/output/template/IterableDataset.java new file mode 100644 index 00000000..d908fccc --- /dev/null +++ b/src/org/cacert/gigi/output/template/IterableDataset.java @@ -0,0 +1,19 @@ +package org.cacert.gigi.output.template; + +import java.util.Map; + +/** + * Represents some kind of data, that may be iterated over in a template. + */ +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 vars); +}