1. /*
  2. * @(#)CurrentHelper.java 1.12 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * The Helper for <tt>Current</tt>. For more information on
  10. * Helper files, see <a href="doc-files/generatedfiles.html#helper">
  11. * "Generated Files: Helper Files"</a>.<P>
  12. * org/omg/CORBA/CurrentHelper.java
  13. * Generated by the IDL-to-Java compiler (portable), version "3.0"
  14. * from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl
  15. * Saturday, July 17, 1999 12:26:21 AM PDT
  16. */
  17. abstract public class CurrentHelper
  18. {
  19. private static String _id = "IDL:omg.org/CORBA/Current:1.0";
  20. public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.Current that)
  21. {
  22. throw new org.omg.CORBA.MARSHAL() ;
  23. }
  24. public static org.omg.CORBA.Current extract (org.omg.CORBA.Any a)
  25. {
  26. throw new org.omg.CORBA.MARSHAL() ;
  27. }
  28. private static org.omg.CORBA.TypeCode __typeCode = null;
  29. synchronized public static org.omg.CORBA.TypeCode type ()
  30. {
  31. if (__typeCode == null)
  32. {
  33. __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.CORBA.CurrentHelper.id (), "Current");
  34. }
  35. return __typeCode;
  36. }
  37. public static String id ()
  38. {
  39. return _id;
  40. }
  41. public static org.omg.CORBA.Current read (org.omg.CORBA.portable.InputStream istream)
  42. {
  43. throw new org.omg.CORBA.MARSHAL() ;
  44. }
  45. public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.Current value)
  46. {
  47. throw new org.omg.CORBA.MARSHAL() ;
  48. }
  49. public static org.omg.CORBA.Current narrow (org.omg.CORBA.Object obj)
  50. {
  51. if (obj == null)
  52. return null;
  53. else if (obj instanceof org.omg.CORBA.Current)
  54. return (org.omg.CORBA.Current)obj;
  55. else
  56. throw new org.omg.CORBA.BAD_PARAM ();
  57. }
  58. }