21 |
|
|
22 |
package nongnu.cashews.language.process; |
package nongnu.cashews.language.process; |
23 |
|
|
24 |
|
import java.util.ArrayList; |
25 |
import java.util.List; |
import java.util.List; |
26 |
|
|
27 |
import nongnu.cashews.xml.Xmlizable; |
import nongnu.cashews.xml.Xmlizable; |
46 |
*/ |
*/ |
47 |
private List<MultiPerformElement> content; |
private List<MultiPerformElement> content; |
48 |
|
|
49 |
|
/** |
50 |
|
* Construct a new <code>MultiPerform</code> construct. |
51 |
|
*/ |
52 |
|
public MultiPerform() |
53 |
|
{ |
54 |
|
content = new ArrayList<MultiPerformElement>(); |
55 |
|
} |
56 |
|
|
57 |
|
/** |
58 |
|
* Adds a new <code>MultiPerformElement</code> to the content of |
59 |
|
* this <code>MultiPerform</code>. |
60 |
|
* |
61 |
|
* @param element the element to add. |
62 |
|
* @return <code>true</code> if the element was added. |
63 |
|
*/ |
64 |
|
public boolean add(MultiPerformElement element) |
65 |
|
{ |
66 |
|
if (element == null) |
67 |
|
return false; |
68 |
|
content.add(element); |
69 |
|
return true; |
70 |
|
} |
71 |
|
|
72 |
|
/** |
73 |
|
* Returns a <code>String</code> representation of this |
74 |
|
* <code>MultiPerform</code>. |
75 |
|
* |
76 |
|
* @return a textual representation. |
77 |
|
*/ |
78 |
|
public String toString() |
79 |
|
{ |
80 |
|
return getClass().getName() + |
81 |
|
"[content=" + |
82 |
|
content + |
83 |
|
"]"; |
84 |
|
} |
85 |
|
|
86 |
} |
} |
87 |
|
|