1 package net.jaekl.cfb.xml;
3 import net.jaekl.qd.xml.ParseResult;
4 import net.jaekl.qd.xml.XmlParseException;
6 import org.xml.sax.Attributes;
8 public class SourceLine extends ParseResult {
10 static final String TAG = "SourceLine";
11 static final String[] INTERNAL = { };
12 static final Object[][] EXTERNAL = { };
14 static final String ATTR_CLASS_NAME = "classname";
15 static final String ATTR_START = "start";
16 static final String ATTR_END = "end";
23 super(TAG, INTERNAL, EXTERNAL);
25 m_start = m_end = (-1);
29 public void endContents(String uri, String localName, String qName, String chars, Attributes attr)
30 throws XmlParseException
34 m_className = getRequiredAttr(localName, attr, ATTR_CLASS_NAME);
36 scratch = getRequiredAttr(localName, attr, ATTR_START);
37 m_start = Integer.parseInt(scratch);
39 scratch = getRequiredAttr(localName, attr, ATTR_END);
40 m_end = Integer.parseInt(scratch);
44 public void endExternal(String uri, String localName, String qName)
45 throws XmlParseException