final DefaultDataTable table = new DefaultDataTable();
final Iterator iterator = colVal.iterator();
int i = 0;
while (iterator.hasNext())
{
table.setObject(i, 0, new StaticValue(iterator.next()));
i += 1;
}
return table.getAsArray();
}
return new ArrayConverterCallback(value, type);
}
final Class componentType = valueType.getComponentType();
if (componentType.isArray())
{
final DefaultDataTable table = new DefaultDataTable();
final int length = Array.getLength(value);
for (int row = 0; row < length; row++)
{
final Object innerArray = Array.get(value, row);
final int innerLength = Array.getLength(innerArray);
for (int col = 0; col < innerLength; col++)
{
table.setObject(row, col, new StaticValue(Array.get(innerArray, col)));
}
}
return table.getAsArray();
}
final DefaultDataTable table = new DefaultDataTable();
final int length = Array.getLength(value);
for (int i = 0; i < length; i++)
{
table.setObject(i, 0, new StaticValue(Array.get(value, i)));
}
return table.getAsArray();
}