01: package org.swingml.action;
02:
03: import java.util.*;
04:
05: /**
06: * @author CrossLogic
07: */
08: public class RemoteActionResult implements IActionResult {
09:
10: private List actions;
11:
12: public void addAction(SelectionMadeResult action) {
13: getActions().add(action);
14: }
15:
16: public List getActions() {
17: if (actions == null) {
18: actions = new ArrayList();
19: }
20: return actions;
21: }
22:
23: public String xmlValue() {
24: String result = "<REMOTE_ACTION_RESULT>";
25:
26: Iterator schmiterator = getActions().iterator();
27: SelectionMadeResult action;
28: while (schmiterator.hasNext()) {
29: action = (SelectionMadeResult) schmiterator.next();
30: result += action.xmlValue();
31: }
32:
33: result += "</REMOTE_ACTION_RESULT>";
34: return result;
35: }
36: }
|