1. package com.sun.corba.se.spi.activation;
  2. /**
  3. * com/sun/corba/se/spi/activation/ORBidListHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/com/sun/corba/se/spi/activation/activation.idl
  6. * Wednesday, September 15, 2004 3:50:42 AM PDT
  7. */
  8. abstract public class ORBidListHelper
  9. {
  10. private static String _id = "IDL:activation/ORBidList:1.0";
  11. public static void insert (org.omg.CORBA.Any a, String[] that)
  12. {
  13. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  14. a.type (type ());
  15. write (out, that);
  16. a.read_value (out.create_input_stream (), type ());
  17. }
  18. public static String[] extract (org.omg.CORBA.Any a)
  19. {
  20. return read (a.create_input_stream ());
  21. }
  22. private static org.omg.CORBA.TypeCode __typeCode = null;
  23. synchronized public static org.omg.CORBA.TypeCode type ()
  24. {
  25. if (__typeCode == null)
  26. {
  27. __typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
  28. __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.spi.activation.ORBidHelper.id (), "ORBid", __typeCode);
  29. __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
  30. __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.spi.activation.ORBidListHelper.id (), "ORBidList", __typeCode);
  31. }
  32. return __typeCode;
  33. }
  34. public static String id ()
  35. {
  36. return _id;
  37. }
  38. public static String[] read (org.omg.CORBA.portable.InputStream istream)
  39. {
  40. String value[] = null;
  41. int _len0 = istream.read_long ();
  42. value = new String[_len0];
  43. for (int _o1 = 0;_o1 < value.length; ++_o1)
  44. value[_o1] = com.sun.corba.se.spi.activation.ORBidHelper.read (istream);
  45. return value;
  46. }
  47. public static void write (org.omg.CORBA.portable.OutputStream ostream, String[] value)
  48. {
  49. ostream.write_long (value.length);
  50. for (int _i0 = 0;_i0 < value.length; ++_i0)
  51. com.sun.corba.se.spi.activation.ORBidHelper.write (ostream, value[_i0]);
  52. }
  53. }