1 29 package net.sourceforge.groboutils.pmti.v1.itf.parser; 30 31 import net.sourceforge.groboutils.pmti.v1.itf.ITestIssueRecord; 32 33 import java.util.Vector ; 34 35 42 public abstract class AbstractParser implements IParser 43 { 44 private Vector tirs; 45 46 47 50 public ITestIssueRecord[] parse() 51 { 52 this.tirs = new Vector (); 53 54 findRecords(); 55 56 ITestIssueRecord[] tir = new ITestIssueRecord[ this.tirs.size() ]; 57 this.tirs.copyInto( tir ); 58 return tir; 59 } 60 61 62 66 protected abstract void findRecords(); 67 68 69 protected void addRecord( ITestIssueRecord tir ) 70 { 71 if (tir != null) 72 { 73 this.tirs.addElement( tir ); 74 } 75 } 76 } 77 78 | Popular Tags |