001 package org.omg.CosNaming.NamingContextPackage;
002
003
004 /**
005 * org/omg/CosNaming/NamingContextPackage/NotFoundReasonHelper.java .
006 * Generated by the IDL-to-Java compiler (portable), version "3.2"
007 * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/CosNaming.idl
008 * Saturday, November 26, 2011 9:53:36 PM UTC
009 */
010
011
012 /**
013 *
014 */
015 abstract public class NotFoundReasonHelper
016 {
017 private static String _id = "IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0";
018
019 public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.NotFoundReason that)
020 {
021 org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
022 a.type (type ());
023 write (out, that);
024 a.read_value (out.create_input_stream (), type ());
025 }
026
027 public static org.omg.CosNaming.NamingContextPackage.NotFoundReason extract (org.omg.CORBA.Any a)
028 {
029 return read (a.create_input_stream ());
030 }
031
032 private static org.omg.CORBA.TypeCode __typeCode = null;
033 synchronized public static org.omg.CORBA.TypeCode type ()
034 {
035 if (__typeCode == null)
036 {
037 __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.id (), "NotFoundReason", new String[] { "missing_node", "not_context", "not_object"} );
038 }
039 return __typeCode;
040 }
041
042 public static String id ()
043 {
044 return _id;
045 }
046
047 public static org.omg.CosNaming.NamingContextPackage.NotFoundReason read (org.omg.CORBA.portable.InputStream istream)
048 {
049 return org.omg.CosNaming.NamingContextPackage.NotFoundReason.from_int (istream.read_long ());
050 }
051
052 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextPackage.NotFoundReason value)
053 {
054 ostream.write_long (value.value ());
055 }
056
057 }