Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosNotifyComm;


Generated from IDL interface "SequencePullConsumer".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:18
 
public abstract class SequencePullConsumerPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "disconnect_sequence_pull_consumer", Integer.valueOf(0));
		.put ( "offer_change", Integer.valueOf(1));
	}
	private String[] ids = {"IDL:omg.org/CosNotifyComm/SequencePullConsumer:1.0","IDL:omg.org/CosNotifyComm/NotifyPublish:1.0"};
	{
		org.omg.CosNotifyComm.SequencePullConsumer __r = org.omg.CosNotifyComm.SequencePullConsumerHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.CosNotifyComm.SequencePullConsumer __r = org.omg.CosNotifyComm.SequencePullConsumerHelper.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: // disconnect_sequence_pull_consumer
			{
				_out = handler.createReply();
				break;
			}
			case 1: // offer_change
			{
			try
			{
				org.omg.CosNotification.EventType[] _arg0=org.omg.CosNotification.EventTypeSeqHelper.read(_input);
				org.omg.CosNotification.EventType[] _arg1=org.omg.CosNotification.EventTypeSeqHelper.read(_input);
				_out = handler.createReply();
				offer_change(_arg0,_arg1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyComm.InvalidEventTypeHelper.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