private GenericObjectTable createColumnHeaders()
{
final List<CellSetAxis> axes = this.resultSet.getAxes();
if (axes.size() < 1)
{
return new GenericObjectTable();
}
final CellSetAxis axis = axes.get(AXIS_COLUMN);
final List<Position> positions = axis.getPositions();
final int colCount = positions.size();
final GenericObjectTable result = new GenericObjectTable(20, Math.max(1, colCount));
for (int c = 0; c < colCount; c++)
{
final Position position = positions.get(c);
final List<Member> memberList = position.getMembers();
Member member = null;
final int rowCount = memberList.size();
for (int r = 0; r < rowCount; r++)
{
member = memberList.get(r);
if (member != null)
{
result.setObject(r, c, member.getName());
}
}
if (member != null)
{
result.setObject(rowCount, c, member.getHierarchy().getName());
}
}
return result;
}