1 package net.jaekl.cfb.xml;
3 import java.util.ArrayList;
5 import org.xml.sax.Attributes;
7 import net.jaekl.qd.xml.ParseResult;
8 import net.jaekl.qd.xml.XmlParseException;
10 public class BugClass extends ParseResult {
12 static final String TAG = "Class";
13 static final String[] INTERNAL = { };
14 static final Object[][] EXTERNAL = { { SourceLine.TAG, SourceLine.class} };
16 static final String CLASS_NAME = "classname";
19 ArrayList<SourceLine> m_sourceLines;
22 super(TAG, INTERNAL, EXTERNAL);
27 public void endContents(String uri, String localName, String qName, String chars, Attributes attr)
28 throws XmlParseException
30 m_className = getRequiredAttr(TAG, attr, CLASS_NAME);
34 public void endExternal(String uri, String localName, String qName)
35 throws XmlParseException
37 if (SourceLine.TAG.equals(localName)) {
38 ParseResult[] collected = collectParsedChildren(SourceLine.class);
39 for (ParseResult pr : collected) {
40 assert(pr instanceof SourceLine);
41 m_sourceLines.add((SourceLine)pr);