Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosCollection;


Generated from IDL interface "KeyBag".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:16
  
 
 public abstract class KeyBagPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "add_or_replace_element_with_key_set_iterator", Integer.valueOf(0));
 		.put ( "number_of_elements_with_key", Integer.valueOf(1));
 		.put ( "locate_next_element_with_different_key", Integer.valueOf(2));
 		.put ( "number_of_different_keys", Integer.valueOf(3));
 		.put ( "number_of_elements", Integer.valueOf(4));
 		.put ( "retrieve_element_at", Integer.valueOf(5));
 		.put ( "replace_element_with_key", Integer.valueOf(6));
 		.put ( "add_or_replace_element_with_key", Integer.valueOf(7));
 		.put ( "_get_key_type", Integer.valueOf(8));
 		.put ( "retrieve_element_with_key", Integer.valueOf(9));
 		.put ( "keys", Integer.valueOf(10));
 		.put ( "key", Integer.valueOf(11));
 		.put ( "_get_element_type", Integer.valueOf(12));
 		.put ( "remove_element_with_key", Integer.valueOf(13));
 		.put ( "remove_element_at", Integer.valueOf(14));
 		.put ( "add_element", Integer.valueOf(15));
 		.put ( "replace_element_with_key_set_iterator", Integer.valueOf(16));
 		.put ( "locate_or_add_element_with_key", Integer.valueOf(17));
 		.put ( "is_empty", Integer.valueOf(18));
 		.put ( "locate_next_element_with_key", Integer.valueOf(19));
 		.put ( "create_iterator", Integer.valueOf(20));
 		.put ( "locate_or_add_element_with_key_set_iterator", Integer.valueOf(21));
 		.put ( "locate_element_with_key", Integer.valueOf(22));
 		.put ( "add_element_set_iterator", Integer.valueOf(23));
 		.put ( "contains_all_keys_from", Integer.valueOf(24));
 		.put ( "remove_all_elements_with_key", Integer.valueOf(25));
 		.put ( "remove_all", Integer.valueOf(26));
 		.put ( "destroy", Integer.valueOf(27));
 		.put ( "contains_element_with_key", Integer.valueOf(28));
 		.put ( "add_all_from", Integer.valueOf(29));
 		.put ( "replace_element_at", Integer.valueOf(30));
 		.put ( "all_elements_do", Integer.valueOf(31));
 	}
 	private String[] ids = {"IDL:omg.org/CosCollection/KeyBag:1.0","IDL:omg.org/CosCollection/KeyCollection:1.0","IDL:omg.org/CosCollection/Collection:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosCollection.KeyBag __r = org.omg.CosCollection.KeyBagHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosCollection.KeyBag __r = org.omg.CosCollection.KeyBagHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.portable.OutputStream _out = null;
 		// 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: // add_or_replace_element_with_key_set_iterator
 			{
 			try
 			{
 				org.omg.CORBA.Any _arg0=_input.read_any();
 				org.omg.CosCollection.Iterator _arg1=org.omg.CosCollection.IteratorHelper.read(_input);
 				_out = handler.createReply();
 			}
 			{
 				_out = handler.createExceptionReply();
 				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
 			}
 			{
 				_out = handler.createExceptionReply();
 				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
 			}
 				break;
 			}
 			case 1: // number_of_elements_with_key
 			{
 			try
 			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.KeyInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 2: // locate_next_element_with_different_key
			{
			try
			{
				org.omg.CosCollection.Iterator _arg0=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 3: // number_of_different_keys
			{
				_out = handler.createReply();
				break;
			}
			case 4: // number_of_elements
			{
				_out = handler.createReply();
				break;
			}
			case 5: // retrieve_element_at
			{
			try
			{
				org.omg.CosCollection.Iterator _arg0=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
				_out.write_any(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 6: // replace_element_with_key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 7: // add_or_replace_element_with_key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 8: // _get_key_type
			{
			_out = handler.createReply();
				break;
			}
			case 9: // retrieve_element_with_key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
				_out.write_any(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.KeyInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 10: // keys
			{
			try
			{
				org.omg.CORBA.Any[] _arg0=org.omg.CosCollection.AnySequenceHelper.read(_input);
				_out = handler.createReply();
				keys(_arg0,_arg1);
				org.omg.CosCollection.AnySequenceHelper.write(_out,_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 11: // key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
				key(_arg0,_arg1);
				_out.write_any(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 12: // _get_element_type
			{
			_out = handler.createReply();
				break;
			}
			case 13: // remove_element_with_key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.KeyInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 14: // remove_element_at
			{
			try
			{
				org.omg.CosCollection.Iterator _arg0=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 15: // add_element
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 16: // replace_element_with_key_set_iterator
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				org.omg.CosCollection.Iterator _arg1=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 17: // locate_or_add_element_with_key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 18: // is_empty
			{
				_out = handler.createReply();
				break;
			}
			case 19: // locate_next_element_with_key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				org.omg.CosCollection.Iterator _arg1=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.KeyInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 20: // create_iterator
			{
				boolean _arg0=_input.read_boolean();
				_out = handler.createReply();
				org.omg.CosCollection.IteratorHelper.write(_out,create_iterator(_arg0));
				break;
			}
			case 21: // locate_or_add_element_with_key_set_iterator
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				org.omg.CosCollection.Iterator _arg1=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 22: // locate_element_with_key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				org.omg.CosCollection.Iterator _arg1=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.KeyInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 23: // add_element_set_iterator
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				org.omg.CosCollection.Iterator _arg1=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 24: // contains_all_keys_from
			{
			try
			{
				org.omg.CosCollection.KeyCollection _arg0=org.omg.CosCollection.KeyCollectionHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.KeyInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 25: // remove_all_elements_with_key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.KeyInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 26: // remove_all
			{
				_out = handler.createReply();
				break;
			}
			case 27: // destroy
			{
				_out = handler.createReply();
				break;
			}
			case 28: // contains_element_with_key
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.KeyInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 29: // add_all_from
			{
			try
			{
				org.omg.CosCollection.Collection _arg0=org.omg.CosCollection.CollectionHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 30: // replace_element_at
			{
			try
			{
				org.omg.CosCollection.Iterator _arg0=org.omg.CosCollection.IteratorHelper.read(_input);
				org.omg.CORBA.Any _arg1=_input.read_any();
				_out = handler.createReply();
				replace_element_at(_arg0,_arg1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex2);
			}
				break;
			}
			case 31: // all_elements_do
			{
				org.omg.CosCollection.Command _arg0=org.omg.CosCollection.CommandHelper.read(_input);
				_out = handler.createReply();
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X