1 23 24 28 package com.sun.jts.otsidl; 29 30 31 37 38 abstract public class ResourceStatusHelper 39 { 40 private static String _id = "IDL:otsidl/ResourceStatus:1.0"; 41 42 public static void insert (org.omg.CORBA.Any a, com.sun.jts.otsidl.ResourceStatus that) 43 { 44 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 45 a.type (type ()); 46 write (out, that); 47 a.read_value (out.create_input_stream (), type ()); 48 } 49 50 public static com.sun.jts.otsidl.ResourceStatus extract (org.omg.CORBA.Any a) 51 { 52 return read (a.create_input_stream ()); 53 } 54 55 private static org.omg.CORBA.TypeCode __typeCode = null; 56 synchronized public static org.omg.CORBA.TypeCode type () 57 { 58 if (__typeCode == null) 59 { 60 __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (com.sun.jts.otsidl.ResourceStatusHelper.id (), "ResourceStatus", new String [] { "None", "Registered", "Completing", "Completed", "Heuristic"} ); 61 } 62 return __typeCode; 63 } 64 65 public static String id () 66 { 67 return _id; 68 } 69 70 public static com.sun.jts.otsidl.ResourceStatus read (org.omg.CORBA.portable.InputStream istream) 71 { 72 return com.sun.jts.otsidl.ResourceStatus.from_int (istream.read_long ()); 73 } 74 75 public static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.jts.otsidl.ResourceStatus value) 76 { 77 ostream.write_long (value.value ()); 78 } 79 80 } 81 | Popular Tags |