001 package org.omg.CORBA;
002
003
004 /**
005 * org/omg/CORBA/ServiceDetailTypeHelper.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/geronimo-orb.idl
008 * Saturday, November 26, 2011 9:53:35 PM UTC
009 */
010
011 abstract public class ServiceDetailTypeHelper
012 {
013 private static String _id = "IDL:CORBA/ServiceDetailType:1.0";
014
015 public static void insert (org.omg.CORBA.Any a, int that)
016 {
017 org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
018 a.type (type ());
019 write (out, that);
020 a.read_value (out.create_input_stream (), type ());
021 }
022
023 public static int extract (org.omg.CORBA.Any a)
024 {
025 return read (a.create_input_stream ());
026 }
027
028 private static org.omg.CORBA.TypeCode __typeCode = null;
029 synchronized public static org.omg.CORBA.TypeCode type ()
030 {
031 if (__typeCode == null)
032 {
033 __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong);
034 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.ServiceDetailTypeHelper.id (), "ServiceDetailType", __typeCode);
035 }
036 return __typeCode;
037 }
038
039 public static String id ()
040 {
041 return _id;
042 }
043
044 public static int read (org.omg.CORBA.portable.InputStream istream)
045 {
046 int value = (int)0;
047 value = istream.read_ulong ();
048 return value;
049 }
050
051 public static void write (org.omg.CORBA.portable.OutputStream ostream, int value)
052 {
053 ostream.write_ulong (value);
054 }
055
056 }