org.omg.CORBA.AnySeqHelper.insert(aSeq, values);
org.apache.yoko.orb.CORBA.Any valSeq;
valSeq = (org.apache.yoko.orb.CORBA.Any) aSeq;
InputStream in = (InputStream) valSeq.create_input_stream();
// NOTE: the input stream I obtain does not contain
// indirections that "span" the original members of the sequence.
// (that is an issue with the implementation of Anys). Thus
// ValueType that span the original Any instance are not
// properly mapped.
//
// Create a sequence of Dynamic Anys
//
org.omg.DynamicAny.DynAny result[] = new org.omg.DynamicAny.DynAny[values.length];
DynValueReader dynValueReader = new DynValueReader(orbInstance_, this,
allow_truncate);
for (int i = 0; i < values.length; i++) {
org.omg.CORBA.TypeCode type = ((org.apache.yoko.orb.CORBA.Any) values[i])
._OB_type();
result[i] = prepare_dyn_any_from_type_code(type, dynValueReader);
}
//
// Populate the DynAnys by unmarshalling the sequence of Anys.
// Start by skipping the sequence lenght
//
in.read_ulong();
for (int i = 0; i < values.length; i++) {
in.read_TypeCode();
DynAny_impl impl = (DynAny_impl) result[i];
impl._OB_unmarshal(in);
}
return result;