}
int numColumnsInData = data.size();
int i = 0;
for (Iterator iter = source.columns(); iter.hasNext(); ++i) {
Column col = (Column)iter.next();
if (i >= numColumnsInData) {
data.add(null);
continue;
}
if (col.isNumeric()) {
String str = data.get(i).toString();
if (str == null || str.length() == 0)
data.set(i, new Integer(0));
else if (str.indexOf('.') == -1)
data.set(i, new Integer(str));
else
data.set(i, new Double(str));
}
else if (col.isDate())
data.set(i, parseDate(col, data.get(i).toString()));
// else, it's a string; there is nothing to modify
}
return data;