serverhelper.java

来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 84 行

JAVA
84
字号
package org.xmlBlaster.protocol.corba.serverIdl;/** *	Generated from IDL interface "Server" *	@author JacORB IDL compiler V 2.1, 16-Feb-2004 */public final class ServerHelper{	public static void insert (final org.omg.CORBA.Any any, final org.xmlBlaster.protocol.corba.serverIdl.Server s)	{			any.insert_Object(s);	}	public static org.xmlBlaster.protocol.corba.serverIdl.Server extract(final org.omg.CORBA.Any any)	{		return narrow(any.extract_Object()) ;	}	public static org.omg.CORBA.TypeCode type()	{		return org.omg.CORBA.ORB.init().create_interface_tc("IDL:org.xmlBlaster.protocol.corba/serverIdl/Server:1.0", "Server");	}	public static String id()	{		return "IDL:org.xmlBlaster.protocol.corba/serverIdl/Server:1.0";	}	public static Server read(final org.omg.CORBA.portable.InputStream in)	{		return narrow(in.read_Object());	}	public static void write(final org.omg.CORBA.portable.OutputStream _out, final org.xmlBlaster.protocol.corba.serverIdl.Server s)	{		_out.write_Object(s);	}	public static org.xmlBlaster.protocol.corba.serverIdl.Server narrow(final java.lang.Object obj)	{		if (obj instanceof org.xmlBlaster.protocol.corba.serverIdl.Server)		{			return (org.xmlBlaster.protocol.corba.serverIdl.Server)obj;		}		else if (obj instanceof org.omg.CORBA.Object)		{			return narrow((org.omg.CORBA.Object)obj);		}		throw new org.omg.CORBA.BAD_PARAM("Failed to narrow in helper");	}	public static org.xmlBlaster.protocol.corba.serverIdl.Server narrow(final org.omg.CORBA.Object obj)	{		if (obj == null)			return null;		try		{			return (org.xmlBlaster.protocol.corba.serverIdl.Server)obj;		}		catch (ClassCastException c)		{			if (obj._is_a("IDL:org.xmlBlaster.protocol.corba/serverIdl/Server:1.0"))			{				org.xmlBlaster.protocol.corba.serverIdl._ServerStub stub;				stub = new org.xmlBlaster.protocol.corba.serverIdl._ServerStub();				stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());				return stub;			}		}		throw new org.omg.CORBA.BAD_PARAM("Narrow failed");	}	public static org.xmlBlaster.protocol.corba.serverIdl.Server unchecked_narrow(final org.omg.CORBA.Object obj)	{		if (obj == null)			return null;		try		{			return (org.xmlBlaster.protocol.corba.serverIdl.Server)obj;		}		catch (ClassCastException c)		{				org.xmlBlaster.protocol.corba.serverIdl._ServerStub stub;				stub = new org.xmlBlaster.protocol.corba.serverIdl._ServerStub();				stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());				return stub;		}	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?