1 9 10 package org.jboss.portal.common.command.result; 11 12 import java.util.Iterator ; 13 import java.util.LinkedList ; 14 import java.util.List ; 15 16 import org.jboss.portal.common.command.CommandConstants; 17 18 22 public class CompositeResult 23 implements Result 24 { 25 26 private final List results = new LinkedList (); 27 28 public void addResult(Result result) 29 { 30 results.add(result); 31 } 32 33 public Iterator iterator() 34 { 35 return results.iterator(); 36 } 37 38 public ResultType getType() 39 { 40 return CommandConstants.TYPE_COMPOSITE; 41 } 42 } 43 | Popular Tags |