Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosTrading;


Generated from IDL struct "Policy".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:24
 
public abstract class PolicyHelper
	private volatile static org.omg.CORBA.TypeCode _type;
	public static org.omg.CORBA.TypeCode type ()
	{
		if ( == null)
		{
			synchronized(PolicyHelper.class)
			{
				if ( == null)
				{
					 = org.omg.CORBA.ORB.init().create_struct_tc(org.omg.CosTrading.PolicyHelper.id(),"Policy",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("name", org.omg.CORBA.ORB.init().create_alias_tc(org.omg.CosTrading.PolicyNameHelper.id(), "PolicyName",org.omg.CORBA.ORB.init().create_string_tc(0)), null),new org.omg.CORBA.StructMember("value", org.omg.CORBA.ORB.init().create_alias_tc(org.omg.CosTrading.PolicyValueHelper.id(), "PolicyValue",org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(11))), null)});
				}
			}
		}
		return ;
	}
	public static void insert (final org.omg.CORBA.Any anyfinal org.omg.CosTrading.Policy s)
	{
		any.type(type());
	}
	public static org.omg.CosTrading.Policy extract (final org.omg.CORBA.Any any)
	{
		try
		{
			return read (in);
		}
		finally
		{
			try
			{
				in.close();
			}
			catch (java.io.IOException e)
			{
			throw new RuntimeException("Unexpected exception " + e.toString() );
			}
		}
	}
	public static String id()
	{
		return "IDL:omg.org/CosTrading/Policy:1.0";
	}
	public static org.omg.CosTrading.Policy read (final org.omg.CORBA.portable.InputStream in)
	{
		result.name=in.read_string();
		result.value=in.read_any();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream outfinal org.omg.CosTrading.Policy s)
	{
		java.lang.String tmpResult12 = s.name;
out.write_stringtmpResult12 );
		out.write_any(s.value);
	}
New to GrepCode? Check out our FAQ X