1 7 package org.omg.CORBA; 8 9 10 19 20 abstract public class DefinitionKindHelper 21 { 22 private static String _id = "IDL:omg.org/CORBA/DefinitionKind:1.0"; 23 24 public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.DefinitionKind that) 25 { 26 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 27 a.type (type ()); 28 write (out, that); 29 a.read_value (out.create_input_stream (), type ()); 30 } 31 32 public static org.omg.CORBA.DefinitionKind extract (org.omg.CORBA.Any a) 33 { 34 return read (a.create_input_stream ()); 35 } 36 37 private static org.omg.CORBA.TypeCode __typeCode = null; 38 synchronized public static org.omg.CORBA.TypeCode type () 39 { 40 if (__typeCode == null) 41 { 42 __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CORBA.DefinitionKindHelper.id (), "DefinitionKind", new String [] { "dk_none", "dk_all", "dk_Attribute", "dk_Constant", "dk_Exception", "dk_Interface", "dk_Module", "dk_Operation", "dk_Typedef", "dk_Alias", "dk_Struct", "dk_Union", "dk_Enum", "dk_Primitive", "dk_String", "dk_Sequence", "dk_Array", "dk_Repository", "dk_Wstring", "dk_Fixed", "dk_Value", "dk_ValueBox", "dk_ValueMember", "dk_Native"} ); 43 } 44 return __typeCode; 45 } 46 47 public static String id () 48 { 49 return _id; 50 } 51 52 public static org.omg.CORBA.DefinitionKind read (org.omg.CORBA.portable.InputStream istream) 53 { 54 return org.omg.CORBA.DefinitionKind.from_int (istream.read_long ()); 55 } 56 57 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.DefinitionKind value) 58 { 59 ostream.write_long (value.value ()); 60 } 61 62 } 63 | Popular Tags |