]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/Outputable.java
add: Allow TranslationCommands to be serialized
[gigi.git] / src / org / cacert / gigi / output / template / Outputable.java
index 5716162a8c5e32b07aec3cb948c7e425bdfc3e32..1e6d9f10041c3552fa80daa91a5cac41d710f889 100644 (file)
@@ -5,7 +5,22 @@ import java.util.Map;
 
 import org.cacert.gigi.localisation.Language;
 
+/**
+ * An object that is outputable to the user normally in an HTML-page.
+ */
 public interface Outputable {
 
+    public static final String OUT_KEY_PLAIN = "output-content-plain";
+
+    /**
+     * Writes this object's content to the given output stream.
+     * 
+     * @param out
+     *            the PrintWriter to the user.
+     * @param l
+     *            the {@link Language} to translate localizable strings to.
+     * @param vars
+     *            a map of variable assignments for this template.
+     */
     public void output(PrintWriter out, Language l, Map<String, Object> vars);
 }