Path: blob/master/dll/europa/corba/EuropaAI/EuropaHelper.java
1074 views
/*1* File: ./EuropaAI/EuropaHelper.java2* From: europa.idl3* Date: Thu Dec 23 02:08:42 19994* By: idltojava Java IDL 1.2 Aug 11 1998 02:00:185*/67package EuropaAI;8public class EuropaHelper {9// It is useless to have instances of this class10private EuropaHelper() { }1112public static void write(org.omg.CORBA.portable.OutputStream out, EuropaAI.Europa that) {13out.write_Object(that);14}15public static EuropaAI.Europa read(org.omg.CORBA.portable.InputStream in) {16return EuropaAI.EuropaHelper.narrow(in.read_Object());17}18public static EuropaAI.Europa extract(org.omg.CORBA.Any a) {19org.omg.CORBA.portable.InputStream in = a.create_input_stream();20return read(in);21}22public static void insert(org.omg.CORBA.Any a, EuropaAI.Europa that) {23org.omg.CORBA.portable.OutputStream out = a.create_output_stream();24write(out, that);25a.read_value(out.create_input_stream(), type());26}27private static org.omg.CORBA.TypeCode _tc;28synchronized public static org.omg.CORBA.TypeCode type() {29if (_tc == null)30_tc = org.omg.CORBA.ORB.init().create_interface_tc(id(), "Europa");31return _tc;32}33public static String id() {34return "IDL:EuropaAI/Europa:1.0";35}36public static EuropaAI.Europa narrow(org.omg.CORBA.Object that)37throws org.omg.CORBA.BAD_PARAM {38if (that == null)39return null;40if (that instanceof EuropaAI.Europa)41return (EuropaAI.Europa) that;42if (!that._is_a(id())) {43throw new org.omg.CORBA.BAD_PARAM();44}45org.omg.CORBA.portable.Delegate dup = ((org.omg.CORBA.portable.ObjectImpl)that)._get_delegate();46EuropaAI.Europa result = new EuropaAI._EuropaStub(dup);47return result;48}49}505152