// get the type of the sequence data
tc = tc.content_type();
TCKind kind = tc.kind();
org.omg.DynamicAny.DynAny da = DynAnyFactoryHelper.narrow(orb.resolve_initial_references("DynAnyFactory")).create_dyn_any(val);
DynSequence ds = DynSequenceHelper.narrow(da);
int len = ds.get_length();
//**//
result = new Value[len];
switch (kind.value()) {
case TCKind._tk_short: {
for (int i = 0; i < len; i++, ds.next())
result[i] = ValueFactory.createShort(ds.get_short());
}
break;
case TCKind._tk_long: {
for (int i = 0; i < len; i++, ds.next())
result[i] = ValueFactory.createLong(ds.get_long());
}
break;
case TCKind._tk_ushort: {
for (int i = 0; i < len; i++, ds.next())
result[i] = ValueFactory.createUShort(ds.get_ushort());
}
break;
case TCKind._tk_ulong: {
for (int i = 0; i < len; i++, ds.next())
result[i] = ValueFactory.createULong(ds.get_ulong());
}
break;
case TCKind._tk_float: {
for (int i = 0; i < len; i++, ds.next())
result[i] = ValueFactory.createFloat(ds.get_float());
}
break;
case TCKind._tk_double: {
for (int i = 0; i < len; i++, ds.next())
result[i] = ValueFactory.createDouble(ds.get_double());
}
break;
case TCKind._tk_boolean: {
for (int i = 0; i < len; i++, ds.next())
result[i] = ValueFactory.createBoolean(ds.get_boolean());
}
break;
case TCKind._tk_char: {
for (int i = 0; i < len; i++, ds.next())
result[i] = ValueFactory.createChar(ds.get_char());
}
break;
case TCKind._tk_string: {
for (int i = 0; i < len; i++, ds.next())
result[i] = ValueFactory.createString(ds.get_string());
}
break;
}
da.destroy();