KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CosNaming > NamingContextPackage > NotFoundReasonHelper


1 package org.omg.CosNaming.NamingContextPackage;
2
3
4 /**
5 * org/omg/CosNaming/NamingContextPackage/NotFoundReasonHelper.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
8 * Saturday, February 9, 2008 9:40:10 AM GMT
9 */

10
11
12 /**
13          * Indicates the reason for not able to resolve.
14          */

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