ccm_server_contexthelper.java

来自「直接放在eclipse环境下」· Java 代码 · 共 66 行

JAVA
66
字号
package org.objectweb.ccm.demo3;

/**
 *	Generated from IDL definition of interface "CCM_Server_Context"
 *	@author JacORB IDL compiler 
 */
public final class CCM_Server_ContextHelper
{
	public static void insert (final org.omg.CORBA.Any any, final org.objectweb.ccm.demo3.CCM_Server_Context s)
	{
			any.insert_Object( s );
	}
	public static org.objectweb.ccm.demo3.CCM_Server_Context 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:ccm.objectweb.org/demo3/CCM_Server_Context:1.0", "CCM_Server_Context");
	}
	public static String id()
	{
		return "IDL:ccm.objectweb.org/demo3/CCM_Server_Context:1.0";
	}
	public static CCM_Server_Context read (final org.omg.CORBA.portable.InputStream in)
	{
		throw new org.omg.CORBA.MARSHAL ();
	}
	public static void write (final org.omg.CORBA.portable.OutputStream _out, final org.objectweb.ccm.demo3.CCM_Server_Context s)
	{
		throw new org.omg.CORBA.MARSHAL ();
	}
	public static org.objectweb.ccm.demo3.CCM_Server_Context narrow (final java.lang.Object obj)
	{
		if( obj instanceof org.objectweb.ccm.demo3.CCM_Server_Context)
		{
			return (org.objectweb.ccm.demo3.CCM_Server_Context)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.objectweb.ccm.demo3.CCM_Server_Context narrow (final org.omg.CORBA.Object obj)
	{
		if( obj == null )
			return null;
		if( obj instanceof org.objectweb.ccm.demo3.CCM_Server_Context )
			return (org.objectweb.ccm.demo3.CCM_Server_Context)obj;
		else
		throw new org.omg.CORBA.BAD_PARAM("Narrow failed, not a org.objectweb.ccm.demo3.CCM_Server_Context");
	}
	public static org.objectweb.ccm.demo3.CCM_Server_Context unchecked_narrow (final org.omg.CORBA.Object obj)
	{
		if( obj == null )
			return null;
		if( obj instanceof org.objectweb.ccm.demo3.CCM_Server_Context )
			return (org.objectweb.ccm.demo3.CCM_Server_Context)obj;
		else
		throw new org.omg.CORBA.BAD_PARAM("unchecked_narrow failed, not a org.objectweb.ccm.demo3.CCM_Server_Context");
	}
}

⌨️ 快捷键说明

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