1. package com.sun.corba.se.PortableActivationIDL.LocatorPackage;
  2. /**
  3. * com/sun/corba/se/PortableActivationIDL/LocatorPackage/ServerLocationPerORBHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
  6. * Wednesday, September 15, 2004 3:50:44 AM PDT
  7. */
  8. abstract public class ServerLocationPerORBHelper
  9. {
  10. private static String _id = "IDL:PortableActivationIDL/Locator/ServerLocationPerORB/ServerLocationPerORB:1.0";
  11. public static void insert (org.omg.CORBA.Any a, com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB 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 com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB 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. private static boolean __active = false;
  24. synchronized public static org.omg.CORBA.TypeCode type ()
  25. {
  26. if (__typeCode == null)
  27. {
  28. synchronized (org.omg.CORBA.TypeCode.class)
  29. {
  30. if (__typeCode == null)
  31. {
  32. if (__active)
  33. {
  34. return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
  35. }
  36. __active = true;
  37. org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
  38. org.omg.CORBA.TypeCode _tcOf_members0 = null;
  39. _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
  40. _members0[0] = new org.omg.CORBA.StructMember (
  41. "hostname",
  42. _tcOf_members0,
  43. null);
  44. _tcOf_members0 = com.sun.corba.se.PortableActivationIDL.EndPointInfoHelper.type ();
  45. _tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0);
  46. _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (com.sun.corba.se.PortableActivationIDL.EndpointInfoListHelper.id (), "EndpointInfoList", _tcOf_members0);
  47. _members0[1] = new org.omg.CORBA.StructMember (
  48. "ports",
  49. _tcOf_members0,
  50. null);
  51. __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORBHelper.id (), "ServerLocationPerORB", _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.PortableActivationIDL.LocatorPackage.ServerLocationPerORB read (org.omg.CORBA.portable.InputStream istream)
  63. {
  64. com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB value = new com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB ();
  65. value.hostname = istream.read_string ();
  66. value.ports = com.sun.corba.se.PortableActivationIDL.EndpointInfoListHelper.read (istream);
  67. return value;
  68. }
  69. public static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB value)
  70. {
  71. ostream.write_string (value.hostname);
  72. com.sun.corba.se.PortableActivationIDL.EndpointInfoListHelper.write (ostream, value.ports);
  73. }
  74. }