Add knowledge about the specific FB tags
[cfb.git] / prod / net / jaekl / cfb / xml / SourceLine.java
index c78ae3af8717835bf21d207b3c9660a19d55edcf..627667a161ac4e3902c6170412e5f32badf2c6b8 100644 (file)
@@ -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
        }
-
 }