KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > components > template > TemplateRenderingContext


1 package com.opensymphony.webwork.components.template;
2
3 import com.opensymphony.webwork.components.UIBean;
4 import com.opensymphony.xwork.util.OgnlValueStack;
5
6 import java.io.Writer JavaDoc;
7 import java.util.Map JavaDoc;
8
9 /**
10  * TemplateRenderingContext
11  * Date: Sep 28, 2004 2:30:28 PM
12  *
13  * @author jcarreira
14  */

15 public class TemplateRenderingContext {
16     Template template;
17     OgnlValueStack stack;
18     Map JavaDoc parameters;
19     UIBean tag;
20     Writer JavaDoc writer;
21
22     public TemplateRenderingContext(Template template, Writer JavaDoc writer, OgnlValueStack stack, Map JavaDoc params, UIBean tag) {
23         this.template = template;
24         this.writer = writer;
25         this.stack = stack;
26         this.parameters = params;
27         this.tag = tag;
28     }
29
30     public Template getTemplate() {
31         return template;
32     }
33
34     public OgnlValueStack getStack() {
35         return stack;
36     }
37
38     public Map JavaDoc getParameters() {
39         return parameters;
40     }
41
42     public UIBean getTag() {
43         return tag;
44     }
45
46     public Writer JavaDoc getWriter() {
47         return writer;
48     }
49 }
50
Popular Tags