1 8 9 package net.sourceforge.chaperon.build.conflict; 10 11 import java.util.Vector ; 12 13 19 public class ConflictList 20 { 21 private Vector list = new Vector (); 22 23 28 public void addConflict(Conflict conflict) 29 { 30 list.addElement(conflict); 31 } 32 33 40 public Conflict getConflict(int index) 41 { 42 return (Conflict)list.elementAt(index); 43 } 44 45 50 public int getConflictCount() 51 { 52 return list.size(); 53 } 54 55 60 public String toString() 61 { 62 StringBuffer buffer = new StringBuffer (); 63 64 for (int i = 0; i<list.size(); i++) 65 { 66 buffer.append(getConflict(i)); 67 buffer.append("\n"); 68 } 69 70 return buffer.toString(); 71 } 72 } 73 | Popular Tags |