while (columnIter.hasNext()) {
Column column = (Column)columnIter.next();
if (column.isHeadField()) {
sb.append(column.toString() + " --- ");
for (int k = 0; k < cells.size(); k++) {
Cell cell = (Cell)cells.get(k);
if ((cell.getColumnName().equals(column.getColumnName())) && (cell.getTableName().equals(column.getTableName()))) {
if (cell.getColumnValue() != null)
sb.append(cell.getColumnValue());
sb.append("\n");
break;
}
}
}
}
sb.append("\n");
boolean hasItemTableField = false;
columnIter = getCurrentObject().getColumns().iterator();
while (columnIter.hasNext()) {
Column column = (Column)columnIter.next();
if (column.isItemTableField()) {
hasItemTableField = true;
sb.append(column.toString() + "\t");
}
}
sb.append("\n");
if (hasItemTableField) {
RowSet rowSet = row.getRowSet();
Iterator rowIter = rowSet.getRows().iterator();
while (rowIter.hasNext()) {
Row tempRow = (Row)rowIter.next();
Iterator cellIter = tempRow.getNewCells().iterator();
while (cellIter.hasNext()) {
Cell cell = (Cell)cellIter.next();
columnIter = getCurrentObject().getColumns().iterator();
while (columnIter.hasNext()) {
Column column = (Column)columnIter.next();
if ( (column.isItemTableField()) && (column.getTableName().equals(cell.getTableName()))
&& (column.getColumnName().equals(cell.getColumnName())) ) {
if (cell.getColumnValue() != null) {
sb.append(cell.getColumnValue() + "\t");
}
}
}
}
sb.append("\n");