1. package com.sun.corba.se.ActivationIDL;
  2. /**
  3. * com/sun/corba/se/ActivationIDL/EndPointInfoHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../../../src/share/classes/com/sun/corba/se/ActivationIDL/activation.idl
  6. * Sunday, February 22, 2004 11:21:42 PM PST
  7. */
  8. // passing a struct containing endpointType and port-#s
  9. abstract public class EndPointInfoHelper
  10. {
  11. private static String _id = "IDL:ActivationIDL/EndPointInfo:1.0";
  12. public static void insert (org.omg.CORBA.Any a, com.sun.corba.se.ActivationIDL.EndPointInfo 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 com.sun.corba.se.ActivationIDL.EndPointInfo 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. private static boolean __active = false;
  25. synchronized public static org.omg.CORBA.TypeCode type ()
  26. {
  27. if (__typeCode == null)
  28. {
  29. synchronized (org.omg.CORBA.TypeCode.class)
  30. {
  31. if (__typeCode == null)
  32. {
  33. if (__active)
  34. {
  35. return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
  36. }
  37. __active = true;
  38. org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
  39. org.omg.CORBA.TypeCode _tcOf_members0 = null;
  40. _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
  41. _members0[0] = new org.omg.CORBA.StructMember (
  42. "endpointType",
  43. _tcOf_members0,
  44. null);
  45. _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
  46. _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.ActivationIDL.TCPPortHelper.id (), "TCPPort", _tcOf_members0);
  47. _members0[1] = new org.omg.CORBA.StructMember (
  48. "port",
  49. _tcOf_members0,
  50. null);
  51. __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (com.sun.corba.se.ActivationIDL.EndPointInfoHelper.id (), "EndPointInfo", _members0);
  52. __active = false;
  53. }
  54. }
  55. }
  56. return __typeCode;
  57. }
  58. public static String id ()
  59. {
  60. return _id;
  61. }
  62. public static com.sun.corba.se.ActivationIDL.EndPointInfo read (org.omg.CORBA.portable.InputStream istream)
  63. {
  64. com.sun.corba.se.ActivationIDL.EndPointInfo value = new com.sun.corba.se.ActivationIDL.EndPointInfo ();
  65. value.endpointType = istream.read_string ();
  66. value.port = istream.read_long ();
  67. return value;
  68. }
  69. public static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.corba.se.ActivationIDL.EndPointInfo value)
  70. {
  71. ostream.write_string (value.endpointType);
  72. ostream.write_long (value.port);
  73. }
  74. }