All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arjuna.ArjunaOTS.UidCoordinatorHelper Maven / Gradle / Ivy

package com.arjuna.ArjunaOTS;


/**
 * Generated from IDL interface "UidCoordinator".
 *
 * @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 UidCoordinatorHelper
{
	public static void insert (final org.omg.CORBA.Any any, final com.arjuna.ArjunaOTS.UidCoordinator s)
	{
			any.insert_Object(s);
	}
	public static com.arjuna.ArjunaOTS.UidCoordinator 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:arjuna.com/ArjunaOTS/UidCoordinator:1.0", "UidCoordinator");
	}
	public static String id()
	{
		return "IDL:arjuna.com/ArjunaOTS/UidCoordinator:1.0";
	}
	public static UidCoordinator read(final org.omg.CORBA.portable.InputStream in)
	{
		return narrow(in.read_Object(com.arjuna.ArjunaOTS._UidCoordinatorStub.class));
	}
	public static void write(final org.omg.CORBA.portable.OutputStream _out, final com.arjuna.ArjunaOTS.UidCoordinator s)
	{
		_out.write_Object(s);
	}
	public static com.arjuna.ArjunaOTS.UidCoordinator narrow(final org.omg.CORBA.Object obj)
	{
		if (obj == null)
		{
			return null;
		}
		else if (obj instanceof com.arjuna.ArjunaOTS.UidCoordinator)
		{
			return (com.arjuna.ArjunaOTS.UidCoordinator)obj;
		}
		else if (obj._is_a("IDL:arjuna.com/ArjunaOTS/UidCoordinator:1.0"))
		{
			com.arjuna.ArjunaOTS._UidCoordinatorStub stub;
			stub = new com.arjuna.ArjunaOTS._UidCoordinatorStub();
			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 com.arjuna.ArjunaOTS.UidCoordinator unchecked_narrow(final org.omg.CORBA.Object obj)
	{
		if (obj == null)
		{
			return null;
		}
		else if (obj instanceof com.arjuna.ArjunaOTS.UidCoordinator)
		{
			return (com.arjuna.ArjunaOTS.UidCoordinator)obj;
		}
		else
		{
			com.arjuna.ArjunaOTS._UidCoordinatorStub stub;
			stub = new com.arjuna.ArjunaOTS._UidCoordinatorStub();
			stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
			return stub;
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy