Some progress toward implementing store(Analysis).
[cfb.git] / prod / net / jaekl / cfb / xml / BugCollection.java
index d906ff983f9bb5b50c98d8b0c9ea512567b3c8e3..6fbf4460ec43d0b7105ae06d3b16b3bd7f68cac9 100644 (file)
@@ -2,6 +2,8 @@ package net.jaekl.cfb.xml;
 
 import java.io.PrintWriter;
 import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
 
 import net.jaekl.qd.xml.ParseResult;
 import net.jaekl.qd.xml.XmlParseException;
@@ -19,8 +21,7 @@ public class BugCollection extends ParseResult {
                m_bugs = new ArrayList<BugInstance>();
        }
        
-       public int size() { return m_bugs.size(); }
-       public BugInstance get(int idx) { return m_bugs.get(idx); }
+       public List<BugInstance> getBugs() { return Collections.unmodifiableList(m_bugs); }
        
        @Override
        public void endContents(String uri, String localName, String qName,     String chars)