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