]> WPIA git - gigi.git/blob - src/org/cacert/gigi/output/template/Outputable.java
02fea41193086bf4c2af3fa1a1ab5dbdbe644208
[gigi.git] / src / org / cacert / gigi / output / template / Outputable.java
1 package org.cacert.gigi.output.template;
2
3 import java.io.PrintWriter;
4 import java.util.Map;
5
6 import org.cacert.gigi.localisation.Language;
7
8 /**
9  * An object that is outputable to the user normally in an HTML-page.
10  */
11 public interface Outputable {
12
13     /**
14      * Writes this object's content to the given output stream.
15      * 
16      * @param out
17      *            the PrintWriter to the user.
18      * @param l
19      *            the {@link Language} to translate localizable strings to.
20      * @param vars
21      *            a map of variable assignments for this template.
22      */
23     public void output(PrintWriter out, Language l, Map<String, Object> vars);
24 }