📄 ccm_namedcomponenthelper.java
字号:
package org.objectweb.ccm.demo3;
/**
* Generated from IDL definition of interface "CCM_NamedComponent"
* @author JacORB IDL compiler
*/
public final class CCM_NamedComponentHelper
{
public static void insert (final org.omg.CORBA.Any any, final org.objectweb.ccm.demo3.CCM_NamedComponent s)
{
any.insert_Object( s );
}
public static org.objectweb.ccm.demo3.CCM_NamedComponent 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_NamedComponent:1.0", "CCM_NamedComponent");
}
public static String id()
{
return "IDL:ccm.objectweb.org/demo3/CCM_NamedComponent:1.0";
}
public static CCM_NamedComponent 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_NamedComponent s)
{
throw new org.omg.CORBA.MARSHAL ();
}
public static org.objectweb.ccm.demo3.CCM_NamedComponent narrow (final java.lang.Object obj)
{
if( obj instanceof org.objectweb.ccm.demo3.CCM_NamedComponent)
{
return (org.objectweb.ccm.demo3.CCM_NamedComponent)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_NamedComponent narrow (final org.omg.CORBA.Object obj)
{
if( obj == null )
return null;
if( obj instanceof org.objectweb.ccm.demo3.CCM_NamedComponent )
return (org.objectweb.ccm.demo3.CCM_NamedComponent)obj;
else
throw new org.omg.CORBA.BAD_PARAM("Narrow failed, not a org.objectweb.ccm.demo3.CCM_NamedComponent");
}
public static org.objectweb.ccm.demo3.CCM_NamedComponent unchecked_narrow (final org.omg.CORBA.Object obj)
{
if( obj == null )
return null;
if( obj instanceof org.objectweb.ccm.demo3.CCM_NamedComponent )
return (org.objectweb.ccm.demo3.CCM_NamedComponent)obj;
else
throw new org.omg.CORBA.BAD_PARAM("unchecked_narrow failed, not a org.objectweb.ccm.demo3.CCM_NamedComponent");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -