package org.dbxml.core.corba.db;
/**
 *	Generated from IDL definition of alias "Names"
 *	@author JacORB IDL compiler 
 */

public class NamesHelper
{
	private static org.omg.CORBA.TypeCode _type = org.omg.CORBA.ORB.init().create_alias_tc( org.dbxml.core.corba.db.NamesHelper.id(),"Names",org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().create_alias_tc( org.dbxml.core.corba.db.NameHelper.id(),"Name",org.omg.CORBA.ORB.init().create_string_tc(0))));
	public NamesHelper ()
	{
	}
	public static void insert(org.omg.CORBA.Any any, java.lang.String[] s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}
	public static java.lang.String[] extract(org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}
	public static org.omg.CORBA.TypeCode type()
	{
		return _type;
	}
	public static String id()
	{
		return "IDL:org/dbxml/core/corba/db/Names:1.0";
	}
	public static java.lang.String[] read(org.omg.CORBA.portable.InputStream _in)
	{
		java.lang.String[] _result;
		int _l_result0 = _in.read_long();
		_result = new java.lang.String[_l_result0];
		for(int i=0;i<_result.length;i++)
		{
			_result[i] = org.dbxml.core.corba.db.NameHelper.read(_in);
		}

		return _result;
	}
	public static void write(org.omg.CORBA.portable.OutputStream _out, java.lang.String[] _s)
	{
		
		_out.write_long(_s.length);
		for( int i=0; i<_s.length;i++)
		{
			org.dbxml.core.corba.db.NameHelper.write(_out,_s[i]);
		}

	}
}
