org.jboss.tm.iiop.TransactionFactoryExtHelper Maven / Gradle / Ivy
The newest version!
package org.jboss.tm.iiop;
/**
* Generated from IDL interface "TransactionFactoryExt".
*
* @author JacORB IDL compiler V 2.3.0 (JBoss patch 4), 06-Jun-2007
* @version generated at Aug 16, 2011 8:43:25 AM
*/
public final class TransactionFactoryExtHelper
{
public static void insert (final org.omg.CORBA.Any any, final org.jboss.tm.iiop.TransactionFactoryExt s)
{
any.insert_Object(s);
}
public static org.jboss.tm.iiop.TransactionFactoryExt 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/jboss/tm/iiop/TransactionFactoryExt:1.0", "TransactionFactoryExt");
}
public static String id()
{
return "IDL:org/jboss/tm/iiop/TransactionFactoryExt:1.0";
}
public static TransactionFactoryExt read(final org.omg.CORBA.portable.InputStream in)
{
return narrow(in.read_Object(org.jboss.tm.iiop._TransactionFactoryExtStub.class));
}
public static void write(final org.omg.CORBA.portable.OutputStream _out, final org.jboss.tm.iiop.TransactionFactoryExt s)
{
_out.write_Object(s);
}
public static org.jboss.tm.iiop.TransactionFactoryExt narrow(final org.omg.CORBA.Object obj)
{
if (obj == null)
{
return null;
}
else if (obj instanceof org.jboss.tm.iiop.TransactionFactoryExt)
{
return (org.jboss.tm.iiop.TransactionFactoryExt)obj;
}
else if (obj._is_a("IDL:org/jboss/tm/iiop/TransactionFactoryExt:1.0"))
{
org.jboss.tm.iiop._TransactionFactoryExtStub stub;
stub = new org.jboss.tm.iiop._TransactionFactoryExtStub();
stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
return stub;
}
else
{
throw new org.omg.CORBA.BAD_PARAM("Narrow failed");
}
}
public static org.jboss.tm.iiop.TransactionFactoryExt unchecked_narrow(final org.omg.CORBA.Object obj)
{
if (obj == null)
{
return null;
}
else if (obj instanceof org.jboss.tm.iiop.TransactionFactoryExt)
{
return (org.jboss.tm.iiop.TransactionFactoryExt)obj;
}
else
{
org.jboss.tm.iiop._TransactionFactoryExtStub stub;
stub = new org.jboss.tm.iiop._TransactionFactoryExtStub();
stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
return stub;
}
}
}