return matches;
}
public Object value()
{
JROlapCell cell = olapResult.getCell(positions);
if (cell != null && cell.isError())
{
throw new JRRuntimeException("OLAP cell calculation returned error.");
}
Object value;
if (cell == null || cell.isNull())
{
value = null;
}
else if (formatted)
{
value = cell.getFormattedValue();
}
else
{
value = cell.getValue().toString();
}
return value;
}