]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/TemplateBlock.java
UPD: Move some template classes to there reightful place.
[gigi.git] / src / org / cacert / gigi / output / template / TemplateBlock.java
index 8f715773052a4d817446375ba137d14df592327d..15ce4e5b967c23ad463cb60017e44d57979fa8b9 100644 (file)
@@ -3,26 +3,27 @@ package org.cacert.gigi.output.template;
 import java.io.PrintWriter;
 import java.util.Map;
 
-import org.cacert.gigi.Language;
-import org.cacert.gigi.output.Outputable;
+import org.cacert.gigi.localisation.Language;
 
 class TemplateBlock implements Outputable {
-       String[] contents;
-       Outputable[] vars;
-
-       public TemplateBlock(String[] contents, Outputable[] vars) {
-               this.contents = contents;
-               this.vars = vars;
-       }
-
-       @Override
-       public void output(PrintWriter out, Language l, Map<String, Object> vars) {
-               for (int i = 0; i < contents.length; i++) {
-                       out.print(contents[i]);
-                       if (i < this.vars.length) {
-                               this.vars[i].output(out, l, vars);
-                       }
-               }
-       }
-
-}
\ No newline at end of file
+
+    private String[] contents;
+
+    private Outputable[] vars;
+
+    public TemplateBlock(String[] contents, Outputable[] vars) {
+        this.contents = contents;
+        this.vars = vars;
+    }
+
+    @Override
+    public void output(PrintWriter out, Language l, Map<String, Object> vars) {
+        for (int i = 0; i < contents.length; i++) {
+            out.print(contents[i]);
+            if (i < this.vars.length) {
+                this.vars[i].output(out, l, vars);
+            }
+        }
+    }
+
+}