metaprops.putAll(dcell.getProperties());
// TODO no properties (NULL) for now -
return new Cell(dcell.getFormattedValue(), metaprops, Cell.Type.DATA_CELL);
}
if (acell instanceof MemberCell) {
MemberCell mcell = (MemberCell) acell;
Properties props = new Properties();
if (mcell != null) {
if (mcell.getParentDimension() != null) {
props.put("dimension", mcell.getParentDimension());
}
if (mcell.getUniqueName() != null) {
props.put("uniquename", mcell.getUniqueName());
}
if (mcell.getHierarchy() != null) {
props.put("hierarchy", mcell.getHierarchy());
}
if (mcell.getLevel() != null) {
props.put("level", mcell.getLevel());
}
}
//props.putAll(mcell.getProperties());
// TODO no properties (NULL) for now -
if ("row_header_header".equals(mcell.getProperty("__headertype"))) {
headertype = Cell.Type.ROW_HEADER_HEADER;
}
return new Cell("" + mcell.getFormattedValue(), props, headertype);
}
}
return null;
}