Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosNotifyChannelAdmin;
Generated from IDL enum "ProxyType".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:20
 
 
 public abstract class ProxyTypeHelper
	private volatile static org.omg.CORBA.TypeCode _type;
	public static org.omg.CORBA.TypeCode type ()
	{
		if ( == null)
		{
			synchronized(ProxyTypeHelper.class)
			{
				if ( == null)
				{
					 = org.omg.CORBA.ORB.init().create_enum_tc(org.omg.CosNotifyChannelAdmin.ProxyTypeHelper.id(),"ProxyType",new String[]{"PUSH_ANY","PULL_ANY","PUSH_STRUCTURED","PULL_STRUCTURED","PUSH_SEQUENCE","PULL_SEQUENCE","PUSH_TYPED","PULL_TYPED"});
				}
			}
		}
		return ;
	}
	public static void insert (final org.omg.CORBA.Any anyfinal org.omg.CosNotifyChannelAdmin.ProxyType s)
	{
		any.type(type());
	}
	public static org.omg.CosNotifyChannelAdmin.ProxyType 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/CosNotifyChannelAdmin/ProxyType:1.0";
	}
	public static ProxyType read (final org.omg.CORBA.portable.InputStream in)
	{
		return ProxyType.from_int(in.read_long());
	}
	public static void write (final org.omg.CORBA.portable.OutputStream outfinal ProxyType s)
	{
		out.write_long(s.value());
	}
New to GrepCode? Check out our FAQ X