1. package org.omg.PortableInterceptor;
  2. /**
  3. * org/omg/PortableInterceptor/InvalidSlotHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/PortableInterceptor/Interceptors.idl
  6. * Monday, February 23, 2004 7:03:06 AM GMT
  7. */
  8. abstract public class InvalidSlotHelper
  9. {
  10. private static String _id = "IDL:omg.org/PortableInterceptor/InvalidSlot:1.0";
  11. public static void insert (org.omg.CORBA.Any a, org.omg.PortableInterceptor.InvalidSlot 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 org.omg.PortableInterceptor.InvalidSlot 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 [0];
  38. org.omg.CORBA.TypeCode _tcOf_members0 = null;
  39. __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.PortableInterceptor.InvalidSlotHelper.id (), "InvalidSlot", _members0);
  40. __active = false;
  41. }
  42. }
  43. }
  44. return __typeCode;
  45. }
  46. public static String id ()
  47. {
  48. return _id;
  49. }
  50. public static org.omg.PortableInterceptor.InvalidSlot read (org.omg.CORBA.portable.InputStream istream)
  51. {
  52. org.omg.PortableInterceptor.InvalidSlot value = new org.omg.PortableInterceptor.InvalidSlot ();
  53. // read and discard the repository ID
  54. istream.read_string ();
  55. return value;
  56. }
  57. public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableInterceptor.InvalidSlot value)
  58. {
  59. // write the repository ID
  60. ostream.write_string (id ());
  61. }
  62. }