protected abstract boolean initializeComponentsFromTypeCode();
// Collapses the whole DynAny hierarchys values into one single streamed Any
protected boolean initializeAnyFromComponents() {
//System.out.println(this + " initializeAnyFromComponents");
OutputStream out = any.create_output_stream();
for (int i=0; i<components.length; i++) {
if (components[i] instanceof DynAnyImpl) {
((DynAnyImpl)components[i]).writeAny(out);
} else {
// Not our implementation. Nothing we can do to prevent copying.
components[i].to_any().write_value(out);
}
}
any.read_value(out.create_input_stream(), any.type());
return true;
}