Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosNotification;


Generated from IDL interface "QoSAdmin".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:22
 
public abstract class QoSAdminPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "validate_qos", Integer.valueOf(0));
		.put ( "get_qos", Integer.valueOf(1));
		.put ( "set_qos", Integer.valueOf(2));
	}
	private String[] ids = {"IDL:omg.org/CosNotification/QoSAdmin:1.0"};
	{
		org.omg.CosNotification.QoSAdmin __r = org.omg.CosNotification.QoSAdminHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.CosNotification.QoSAdmin __r = org.omg.CosNotification.QoSAdminHelper.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: // validate_qos
			{
			try
			{
				org.omg.CosNotification.Property[] _arg0=org.omg.CosNotification.PropertySeqHelper.read(_input);
				_out = handler.createReply();
				validate_qos(_arg0,_arg1);
				org.omg.CosNotification.NamedPropertyRangeSeqHelper.write(_out,_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotification.UnsupportedQoSHelper.write(_out_ex0);
			}
				break;
			}
			case 1: // get_qos
			{
				_out = handler.createReply();
				org.omg.CosNotification.PropertySeqHelper.write(_out,get_qos());
				break;
			}
			case 2: // set_qos
			{
			try
			{
				org.omg.CosNotification.Property[] _arg0=org.omg.CosNotification.PropertySeqHelper.read(_input);
				_out = handler.createReply();
				set_qos(_arg0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotification.UnsupportedQoSHelper.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