1. /*
  2. * @(#)CurrentHelper.java 1.7 00/02/02
  3. *
  4. * Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package org.omg.CORBA;
  11. /**
  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. }