01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fitnesse.html;
04:
05: import java.util.Iterator;
06:
07: public class TagGroup extends HtmlTag {
08: public TagGroup() {
09: super ("group");
10: }
11:
12: public String html(int depth) throws Exception {
13: StringBuffer buffer = new StringBuffer();
14: for (Iterator iterator = childTags.iterator(); iterator
15: .hasNext();) {
16: HtmlElement element = (HtmlElement) iterator.next();
17: if (element instanceof HtmlTag)
18: buffer.append(((HtmlTag) element).html(depth));
19: else
20: buffer.append(element.html());
21: }
22: return buffer.toString();
23: }
24: }
|