KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > output > Output


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.output;
10
11 import java.util.Iterator JavaDoc;
12 import java.util.LinkedList JavaDoc;
13 import java.util.List JavaDoc;
14
15 /**
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1 $
18  */

19 public class Output
20 {
21
22    protected Result targetResult;
23    protected List JavaDoc renderResults;
24
25    public Output()
26    {
27       renderResults = new LinkedList JavaDoc();
28    }
29
30    public Result getTargetResult()
31    {
32       return targetResult;
33    }
34
35    public void setTargetResult(Result targetResult)
36    {
37       this.targetResult = targetResult;
38    }
39
40    public void addRenderResult(Result result)
41    {
42       renderResults.add(result);
43    }
44
45    public Iterator JavaDoc getRenderResults()
46    {
47       return renderResults.iterator();
48    }
49 }
50
Popular Tags