/* * File: ./SimpleHelloWorld/DontCallMeExceptionHelper.java * From: SimpleHelloWorld.idl * Date: Tue Jan 18 17:04:03 2000 * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18 */ package SimpleHelloWorld; public class DontCallMeExceptionHelper { // It is useless to have instances of this class private DontCallMeExceptionHelper() { } public static void write(org.omg.CORBA.portable.OutputStream out, SimpleHelloWorld.DontCallMeException that) { out.write_string(id()); out.write_string(that.message); } public static SimpleHelloWorld.DontCallMeException read(org.omg.CORBA.portable.InputStream in) { SimpleHelloWorld.DontCallMeException that = new SimpleHelloWorld.DontCallMeException(); // read and discard the repository id in.read_string(); that.message = in.read_string(); return that; } public static SimpleHelloWorld.DontCallMeException extract(org.omg.CORBA.Any a) { org.omg.CORBA.portable.InputStream in = a.create_input_stream(); return read(in); } public static void insert(org.omg.CORBA.Any a, SimpleHelloWorld.DontCallMeException that) { org.omg.CORBA.portable.OutputStream out = a.create_output_stream(); write(out, that); a.read_value(out.create_input_stream(), type()); } private static org.omg.CORBA.TypeCode _tc; synchronized public static org.omg.CORBA.TypeCode type() { int _memberCount = 1; org.omg.CORBA.StructMember[] _members = null; if (_tc == null) { _members= new org.omg.CORBA.StructMember[1]; _members[0] = new org.omg.CORBA.StructMember( "message", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_string), null); _tc = org.omg.CORBA.ORB.init().create_exception_tc(id(), "DontCallMeException", _members); } return _tc; } public static String id() { return "IDL:SimpleHelloWorld/DontCallMeException:1.0"; } }