Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosNotifyFilter;


Generated from IDL interface "FilterFactory".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:19
 
public abstract class FilterFactoryPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "create_mapping_filter", Integer.valueOf(0));
		.put ( "create_filter", Integer.valueOf(1));
	}
	private String[] ids = {"IDL:omg.org/CosNotifyFilter/FilterFactory:1.0"};
	{
		org.omg.CosNotifyFilter.FilterFactory __r = org.omg.CosNotifyFilter.FilterFactoryHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.CosNotifyFilter.FilterFactory __r = org.omg.CosNotifyFilter.FilterFactoryHelper.narrow(__o);
		return __r;
	}
	{
		// do something
		// quick lookup of operation
		java.lang.Integer opsIndex = (java.lang.Integer).get ( method );
		if ( null == opsIndex )
			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
		switch ( opsIndex.intValue() )
		{
			case 0: // create_mapping_filter
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				org.omg.CORBA.Any _arg1=_input.read_any();
				_out = handler.createReply();
				org.omg.CosNotifyFilter.MappingFilterHelper.write(_out,create_mapping_filter(_arg0,_arg1));
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.InvalidGrammarHelper.write(_out_ex0);
			}
				break;
			}
			case 1: // create_filter
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				org.omg.CosNotifyFilter.FilterHelper.write(_out,create_filter(_arg0));
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.InvalidGrammarHelper.write(_out_ex0);
			}
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X