151 |
* discarded. |
* discarded. |
152 |
* @param elements - a vector to add the values to. |
* @param elements - a vector to add the values to. |
153 |
*/ |
*/ |
154 |
public void getElements(Vector elements) |
public void getElements(Vector<Element> elements) |
155 |
{ |
{ |
156 |
ContentModel c = this; |
ContentModel c = this; |
157 |
|
|
158 |
while (c != null) |
while (c != null) |
159 |
{ |
{ |
160 |
elements.add(c.content); |
// FIXME: correct? |
161 |
|
if (c.content instanceof Element) |
162 |
|
elements.add((Element) c.content); |
163 |
c = c.next; |
c = c.next; |
164 |
} |
} |
165 |
} |
} |