KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)CompletionStatusHelper.java 1.9 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>CompletionStatus</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/CompletionStatusHelper.java
15 * Generated by the IDL-to-Java compiler (portable), version "3.0"
16 * 03 June 1999 11:52:03 o'clock GMT+00:00
17 */

18
19 abstract public class CompletionStatusHelper
20 {
21   private static String JavaDoc _id = "IDL:omg.org/CORBA/CompletionStatus:1.0";
22
23   public static void insert (org.omg.CORBA.Any JavaDoc a, org.omg.CORBA.CompletionStatus JavaDoc that)
24   {
25     org.omg.CORBA.portable.OutputStream JavaDoc out = a.create_output_stream ();
26     a.type (type ());
27     write (out, that);
28     a.read_value (out.create_input_stream (), type ());
29   }
30
31   public static org.omg.CORBA.CompletionStatus JavaDoc extract (org.omg.CORBA.Any JavaDoc a)
32   {
33     return read (a.create_input_stream ());
34   }
35
36   private static org.omg.CORBA.TypeCode JavaDoc __typeCode = null;
37   synchronized public static org.omg.CORBA.TypeCode JavaDoc type ()
38   {
39     if (__typeCode == null)
40     {
41       __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CORBA.CompletionStatusHelper.id (), "CompletionStatus", new String JavaDoc[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE"} );
42     }
43     return __typeCode;
44   }
45
46   public static String JavaDoc id ()
47   {
48     return _id;
49   }
50
51   public static org.omg.CORBA.CompletionStatus JavaDoc read (org.omg.CORBA.portable.InputStream JavaDoc istream)
52   {
53     return org.omg.CORBA.CompletionStatus.from_int (istream.read_long ());
54   }
55
56   public static void write (org.omg.CORBA.portable.OutputStream JavaDoc ostream, org.omg.CORBA.CompletionStatus JavaDoc value)
57   {
58     ostream.write_long (value.value ());
59   }
60
61 }
62
Popular Tags