KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > common > command > result > CompositeResult


1 /***************************************
2  * *
3  * Nukes: The OpenSource CMS *
4  * *
5  * Distributable under GPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9
10 package org.jboss.portal.common.command.result;
11
12 import java.util.Iterator JavaDoc;
13 import java.util.LinkedList JavaDoc;
14 import java.util.List JavaDoc;
15
16 import org.jboss.portal.common.command.CommandConstants;
17
18 /**
19  * @version <tt>$Revision: 1.1.1.1 $</tt>
20  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
21  */

22 public class CompositeResult
23    implements Result
24 {
25
26    private final List JavaDoc results = new LinkedList JavaDoc();
27
28    public void addResult(Result result)
29    {
30       results.add(result);
31    }
32
33    public Iterator JavaDoc iterator()
34    {
35       return results.iterator();
36    }
37
38    public ResultType getType()
39    {
40       return CommandConstants.TYPE_COMPOSITE;
41    }
42 }
43
Popular Tags