KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > carol > cmi > compiler > XMLElement


1 /*
2  * Copyright (C) 2002-2003, Simon Nieuviarts
3  */

4 package org.objectweb.carol.cmi.compiler;
5
6 import org.xml.sax.Attributes JavaDoc;
7 import java.util.LinkedList JavaDoc;
8
9 class XMLElement {
10     public XMLElement parent;
11     public String JavaDoc name;
12     public Attributes JavaDoc attrs;
13     public LinkedList JavaDoc childs;
14
15     public XMLElement(XMLElement parent, String JavaDoc name, Attributes JavaDoc attrs) {
16         this.parent = parent;
17         this.name = name;
18         this.attrs = attrs;
19         childs = new LinkedList JavaDoc();
20     }
21
22     public void add(XMLElement e) {
23         childs.add(e);
24     }
25     public void add(String JavaDoc s) {
26         childs.add(s);
27     }
28 }
29
Popular Tags