package com.interpress_project.modernshare.orb.generated;


/**
 * Generated from IDL exception "AccountExist".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2007/03/21 14:13:25
 */

public final class AccountExistHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_exception_tc(com.interpress_project.modernshare.orb.generated.AccountExistHelper.id(),"AccountExist",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("msg", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.interpress_project.modernshare.orb.generated.AccountExist s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.interpress_project.modernshare.orb.generated.AccountExist extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/interpress_project/modernshare/orb/generated/AccountExist:1.0";
	}
	public static com.interpress_project.modernshare.orb.generated.AccountExist read (final org.omg.CORBA.portable.InputStream in)
	{
		com.interpress_project.modernshare.orb.generated.AccountExist result = new com.interpress_project.modernshare.orb.generated.AccountExist();
		if (!in.read_string().equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id");
		result.msg=in.read_wstring();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.interpress_project.modernshare.orb.generated.AccountExist s)
	{
		out.write_string(id());
		out.write_wstring(s.msg);
	}
}
