org.omg.CosTransactions.CurrentHelper Maven / Gradle / Ivy
The newest version!
package org.omg.CosTransactions;
/**
* Generated from IDL interface "Current".
*
* @author JacORB IDL compiler V 2.3.1 (JBoss patch01), 29-Jul-2009
* @version generated at Oct 2, 2012 3:07:46 PM
*/
public final class CurrentHelper
{
public static void insert (final org.omg.CORBA.Any any, final org.omg.CosTransactions.Current s)
{
any.insert_Object(s);
}
public static org.omg.CosTransactions.Current 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:omg.org/CosTransactions/Current:1.0", "Current");
}
public static String id()
{
return "IDL:omg.org/CosTransactions/Current:1.0";
}
public static Current read(final org.omg.CORBA.portable.InputStream in)
{
return narrow(in.read_Object(org.omg.CosTransactions._CurrentStub.class));
}
public static void write(final org.omg.CORBA.portable.OutputStream _out, final org.omg.CosTransactions.Current s)
{
_out.write_Object(s);
}
public static org.omg.CosTransactions.Current narrow(final org.omg.CORBA.Object obj)
{
if (obj == null)
{
return null;
}
else if (obj instanceof org.omg.CosTransactions.Current)
{
return (org.omg.CosTransactions.Current)obj;
}
else if (obj._is_a("IDL:omg.org/CosTransactions/Current:1.0"))
{
org.omg.CosTransactions._CurrentStub stub;
stub = new org.omg.CosTransactions._CurrentStub();
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.omg.CosTransactions.Current unchecked_narrow(final org.omg.CORBA.Object obj)
{
if (obj == null)
{
return null;
}
else if (obj instanceof org.omg.CosTransactions.Current)
{
return (org.omg.CosTransactions.Current)obj;
}
else
{
org.omg.CosTransactions._CurrentStub stub;
stub = new org.omg.CosTransactions._CurrentStub();
stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
return stub;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy