X-Git-Url: http://jaekl.net/gitweb/?p=cfb.git;a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2Fxml%2FSourceLine.java;h=627667a161ac4e3902c6170412e5f32badf2c6b8;hp=c78ae3af8717835bf21d207b3c9660a19d55edcf;hb=a938b67bf3d3bd86f8dd7b1f958e81007bf6f2fe;hpb=08a530ef53cc4756f5e632b69c78830872ebd9f4 diff --git a/prod/net/jaekl/cfb/xml/SourceLine.java b/prod/net/jaekl/cfb/xml/SourceLine.java index c78ae3a..627667a 100644 --- a/prod/net/jaekl/cfb/xml/SourceLine.java +++ b/prod/net/jaekl/cfb/xml/SourceLine.java @@ -1,14 +1,13 @@ package net.jaekl.cfb.xml; -import org.xml.sax.Attributes; - -import net.jaekl.qd.xml.MissingAttributeException; import net.jaekl.qd.xml.ParseResult; import net.jaekl.qd.xml.XmlParseException; +import org.xml.sax.Attributes; + public class SourceLine extends ParseResult { - static final String ROOT_TAG = "SourceLine"; + static final String TAG = "SourceLine"; static final String[] INTERNAL = { }; static final Object[][] EXTERNAL = { }; @@ -21,7 +20,7 @@ public class SourceLine extends ParseResult { int m_end; public SourceLine() { - super(ROOT_TAG, INTERNAL, EXTERNAL); + super(TAG, INTERNAL, EXTERNAL); m_className = null; m_start = m_end = (-1); } @@ -41,21 +40,10 @@ public class SourceLine extends ParseResult { m_end = Integer.parseInt(scratch); } - String getRequiredAttr(String tagName, Attributes attr, String attrName) - throws MissingAttributeException - { - String result = attr.getValue(attrName); - if (null == result) { - throw new MissingAttributeException(tagName, attrName); - } - return result; - } - @Override public void endExternal(String uri, String localName, String qName) throws XmlParseException { // no-op } - }