]> WPIA git - gigi.git/blob - src/org/cacert/gigi/output/template/Outputable.java
add: an non-HTML-encoding mode for templates for e.g. producing emails
[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     public static final String OUT_KEY_PLAIN = "output-content-plain";
14
15     /**
16      * Writes this object's content to the given output stream.
17      * 
18      * @param out
19      *            the PrintWriter to the user.
20      * @param l
21      *            the {@link Language} to translate localizable strings to.
22      * @param vars
23      *            a map of variable assignments for this template.
24      */
25     public void output(PrintWriter out, Language l, Map<String, Object> vars);
26 }