1. package org.omg.IOP;
  2. /**
  3. * org/omg/IOP/MultipleComponentProfileHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/PortableInterceptor/IOP.idl
  6. * Monday, February 23, 2004 7:03:03 AM GMT
  7. */
  8. /** An array of tagged components, forming a multiple component profile. */
  9. abstract public class MultipleComponentProfileHelper
  10. {
  11. private static String _id = "IDL:omg.org/IOP/MultipleComponentProfile:1.0";
  12. public static void insert (org.omg.CORBA.Any a, org.omg.IOP.TaggedComponent[] that)
  13. {
  14. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  15. a.type (type ());
  16. write (out, that);
  17. a.read_value (out.create_input_stream (), type ());
  18. }
  19. public static org.omg.IOP.TaggedComponent[] extract (org.omg.CORBA.Any a)
  20. {
  21. return read (a.create_input_stream ());
  22. }
  23. private static org.omg.CORBA.TypeCode __typeCode = null;
  24. synchronized public static org.omg.CORBA.TypeCode type ()
  25. {
  26. if (__typeCode == null)
  27. {
  28. __typeCode = org.omg.IOP.TaggedComponentHelper.type ();
  29. __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
  30. __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.IOP.MultipleComponentProfileHelper.id (), "MultipleComponentProfile", __typeCode);
  31. }
  32. return __typeCode;
  33. }
  34. public static String id ()
  35. {
  36. return _id;
  37. }
  38. public static org.omg.IOP.TaggedComponent[] read (org.omg.CORBA.portable.InputStream istream)
  39. {
  40. org.omg.IOP.TaggedComponent value[] = null;
  41. int _len0 = istream.read_long ();
  42. value = new org.omg.IOP.TaggedComponent[_len0];
  43. for (int _o1 = 0;_o1 < value.length; ++_o1)
  44. value[_o1] = org.omg.IOP.TaggedComponentHelper.read (istream);
  45. return value;
  46. }
  47. public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.IOP.TaggedComponent[] value)
  48. {
  49. ostream.write_long (value.length);
  50. for (int _i0 = 0;_i0 < value.length; ++_i0)
  51. org.omg.IOP.TaggedComponentHelper.write (ostream, value[_i0]);
  52. }
  53. }