KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > CurrentHelper


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
10 /**
11 * The Helper for <tt>Current</tt>. For more information on
12 * Helper files, see <a HREF="doc-files/generatedfiles.html#helper">
13 * "Generated Files: Helper Files"</a>.<P>
14 * org/omg/CORBA/CurrentHelper.java
15 * Generated by the IDL-to-Java compiler (portable), version "3.0"
16 * from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl
17 * Saturday, July 17, 1999 12:26:21 AM PDT
18 */

19
20 abstract public class CurrentHelper
21 {
22   private static String JavaDoc _id = "IDL:omg.org/CORBA/Current:1.0";
23
24   public static void insert (org.omg.CORBA.Any JavaDoc a, org.omg.CORBA.Current JavaDoc that)
25   {
26     throw new org.omg.CORBA.MARSHAL JavaDoc() ;
27   }
28
29   public static org.omg.CORBA.Current JavaDoc extract (org.omg.CORBA.Any JavaDoc a)
30   {
31     throw new org.omg.CORBA.MARSHAL JavaDoc() ;
32   }
33
34   private static org.omg.CORBA.TypeCode JavaDoc __typeCode = null;
35   synchronized public static org.omg.CORBA.TypeCode JavaDoc type ()
36   {
37     if (__typeCode == null)
38     {
39       __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.CORBA.CurrentHelper.id (), "Current");
40     }
41     return __typeCode;
42   }
43
44   public static String JavaDoc id ()
45   {
46     return _id;
47   }
48
49   public static org.omg.CORBA.Current JavaDoc read (org.omg.CORBA.portable.InputStream JavaDoc istream)
50   {
51     throw new org.omg.CORBA.MARSHAL JavaDoc() ;
52   }
53
54   public static void write (org.omg.CORBA.portable.OutputStream JavaDoc ostream, org.omg.CORBA.Current JavaDoc value)
55   {
56     throw new org.omg.CORBA.MARSHAL JavaDoc() ;
57   }
58
59   public static org.omg.CORBA.Current JavaDoc narrow (org.omg.CORBA.Object JavaDoc obj)
60   {
61     if (obj == null)
62       return null;
63     else if (obj instanceof org.omg.CORBA.Current JavaDoc)
64       return (org.omg.CORBA.Current JavaDoc)obj;
65     else
66       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
67   }
68
69 }
70
Popular Tags