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

public class NamedValsHelper
{
	private static org.omg.CORBA.TypeCode _type = org.omg.CORBA.ORB.init().create_alias_tc( org.dbxml.core.corba.db.NamedValsHelper.id(),"NamedVals",org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().create_struct_tc(org.dbxml.core.corba.db.NamedValHelper.id(),"NamedVal",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("nam",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)),null),new org.omg.CORBA.StructMember("val",org.omg.CORBA.ORB.init().create_alias_tc( org.dbxml.core.corba.db.ValueHelper.id(),"Value",org.omg.CORBA.ORB.init().create_string_tc(0)),null)})));
	public NamedValsHelper ()
	{
	}
	public static void insert(org.omg.CORBA.Any any, org.dbxml.core.corba.db.NamedVal[] s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}
	public static org.dbxml.core.corba.db.NamedVal[] 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/NamedVals:1.0";
	}
	public static org.dbxml.core.corba.db.NamedVal[] read(org.omg.CORBA.portable.InputStream _in)
	{
		org.dbxml.core.corba.db.NamedVal[] _result;
		int _l_result2 = _in.read_long();
		_result = new org.dbxml.core.corba.db.NamedVal[_l_result2];
		for(int i=0;i<_result.length;i++)
		{
			_result[i]=org.dbxml.core.corba.db.NamedValHelper.read(_in);
		}

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

	}
}
