1 4 package com.tc; 5 6 import org.apache.xmlbeans.XmlError; 7 8 import com.tc.admin.common.XObjectTableModel; 9 10 import java.util.List ; 11 12 public class ConfigProblemTableModel extends XObjectTableModel { 13 private static final String [] FIELDS = {"Message", "Line", "Column"}; 14 15 public ConfigProblemTableModel() { 16 super(XmlError.class, FIELDS, FIELDS); 17 } 18 19 public ConfigProblemTableModel(List errorList) { 20 this(); 21 setErrors(errorList); 22 } 23 24 public void setErrors(List errorList) { 25 set(errorList.iterator()); 26 } 27 28 public XmlError getError(int row) { 29 return (XmlError)getObjectAt(row); 30 } 31 } 32 | Popular Tags |