if (raw.getClass().isArray() == false)
{
throw new ReportDataFactoryException("For parameter " + name + " Expected array, but got " + raw);
}
final CSVQuoter quoter = new CSVQuoter(';');
final String arrayType = type.substring(0, type.length() - 5);
final StringBuffer b = new StringBuffer();
final int length = Array.getLength(raw);
for (int i = 0; i < length; i++)
{
final Object o = Array.get(raw, i);
if (i > 0)
{
b.append(";");
}
final String str = parameterToString(name + "[" + i + "]", arrayType, pattern, o);
b.append(quoter.doQuoting(str));
}
}
throw new ReportDataFactoryException("Unknown type " + type + " for parameter " + name);
}