Add ability to load previously found bugs back out of the database.
[cfb.git] / prod / net / jaekl / cfb / xml / BugMethod.java
index 80afa93392a69b632cd3c9023982a5fc18d9c850..f05c510af39ddd412df0744439cb3edcb445b032 100644 (file)
@@ -37,6 +37,20 @@ public class BugMethod extends ParseResult {
                m_sourceLines = new ArrayList<SourceLine>();
        }
        
+       public BugMethod(Long id, String methodName, String methodRole) {
+               super(TAG, INTERNAL, EXTERNAL);
+               m_className = null;
+               m_methodName = methodName;
+               m_role = methodRole;
+               m_isStatic = false;
+               m_sourceLines = new ArrayList<SourceLine>();
+       }
+       
+       public String getClassName() { return m_className; }
+       public String getMethodName() { return m_methodName; }
+       public String getRole() { return m_role; }
+       public SourceLine[] getSourceLines() { return m_sourceLines.toArray(new SourceLine[m_sourceLines.size()]); }
+       
        @Override
        public void handleMainAttributes(Attributes attr) throws MissingAttributeException 
        {