]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/Scope.java
fix: ResultSet.getDate is often wrong as it fetches day-precision times
[gigi.git] / src / org / cacert / gigi / output / template / Scope.java
index 9a15b3a4c3ea8db8c218ff887d2d9aac80bdb322..700ccfe7e9b717229869720ebc61f3eb387a5a41 100644 (file)
@@ -6,12 +6,24 @@ import java.util.Map;
 
 import org.cacert.gigi.localisation.Language;
 
+/**
+ * Builds a variable scope around another {@link Outputable}, statically filling
+ * variables.
+ */
 public class Scope implements Outputable {
 
     private Map<String, Object> vars;
 
     private Outputable out;
 
+    /**
+     * Creates a new {@link Scope}.
+     * 
+     * @param out
+     *            the enclosed {@link Outputable}.
+     * @param vars
+     *            the variables to assign in the inner scope.
+     */
     public Scope(Outputable out, Map<String, Object> vars) {
         this.out = out;
         this.vars = vars;