Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosCollection;


Generated from IDL interface "KeySortedCollection".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:16
  
 
 public abstract class KeySortedCollectionPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "remove_all_elements_with_key", Integer.valueOf(0));
 		.put ( "add_or_replace_element_with_key_set_iterator", Integer.valueOf(1));
 		.put ( "contains_all_keys_from", Integer.valueOf(2));
 		.put ( "locate_next_element_with_key", Integer.valueOf(3));
 		.put ( "_get_element_type", Integer.valueOf(4));
 		.put ( "retrieve_element_at_position", Integer.valueOf(5));
 		.put ( "create_iterator", Integer.valueOf(6));
 		.put ( "locate_element_with_key", Integer.valueOf(7));
 		.put ( "number_of_elements_with_key", Integer.valueOf(8));
 		.put ( "is_empty", Integer.valueOf(9));
 		.put ( "remove_element_at_position", Integer.valueOf(10));
 		.put ( "locate_or_add_element_with_key_set_iterator", Integer.valueOf(11));
 		.put ( "remove_first_element", Integer.valueOf(12));
 		.put ( "locate_first_element_with_key", Integer.valueOf(13));
 		.put ( "retrieve_last_element", Integer.valueOf(14));
 		.put ( "locate_or_add_element_with_key", Integer.valueOf(15));
 		.put ( "retrieve_first_element", Integer.valueOf(16));
 		.put ( "add_element", Integer.valueOf(17));
 		.put ( "replace_element_at", Integer.valueOf(18));
 		.put ( "add_or_replace_element_with_key", Integer.valueOf(19));
 		.put ( "locate_previous_element_with_different_key", Integer.valueOf(20));
 		.put ( "remove_element_with_key", Integer.valueOf(21));
 		.put ( "retrieve_element_at", Integer.valueOf(22));
 		.put ( "_get_key_type", Integer.valueOf(23));
 		.put ( "destroy", Integer.valueOf(24));
 		.put ( "replace_element_with_key_set_iterator", Integer.valueOf(25));
 		.put ( "keys", Integer.valueOf(26));
 		.put ( "create_ordered_iterator", Integer.valueOf(27));
 		.put ( "add_all_from", Integer.valueOf(28));
 		.put ( "number_of_elements", Integer.valueOf(29));
 		.put ( "locate_next_element_with_different_key", Integer.valueOf(30));
 		.put ( "locate_last_element_with_key", Integer.valueOf(31));
 		.put ( "remove_element_at", Integer.valueOf(32));
 		.put ( "number_of_different_keys", Integer.valueOf(33));
 		.put ( "remove_all", Integer.valueOf(34));
 		.put ( "replace_element_with_key", Integer.valueOf(35));
 		.put ( "contains_element_with_key", Integer.valueOf(36));
 		.put ( "add_element_set_iterator", Integer.valueOf(37));
 		.put ( "remove_last_element", Integer.valueOf(38));
 		.put ( "all_elements_do", Integer.valueOf(39));
 		.put ( "retrieve_element_with_key", Integer.valueOf(40));
 		.put ( "locate_previous_element_with_key", Integer.valueOf(41));
 		.put ( "key", Integer.valueOf(42));
 	}
 	private String[] ids = {"IDL:omg.org/CosCollection/KeySortedCollection:1.0","IDL:omg.org/CosCollection/KeyCollection:1.0","IDL:omg.org/CosCollection/Collection:1.0","IDL:omg.org/CosCollection/OrderedCollection:1.0","IDL:omg.org/CosCollection/SortedCollection:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosCollection.KeySortedCollection __r = org.omg.CosCollection.KeySortedCollectionHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosCollection.KeySortedCollection __r = org.omg.CosCollection.KeySortedCollectionHelper.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: // 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 1: // 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 2: // 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 3: // 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 4: // _get_element_type
			{
			_out = handler.createReply();
				break;
			}
			case 5: // retrieve_element_at_position
			{
			try
			{
				int _arg0=_input.read_ulong();
				_out = handler.createReply();
				_out.write_any(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.PositionInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 6: // create_iterator
			{
				boolean _arg0=_input.read_boolean();
				_out = handler.createReply();
				org.omg.CosCollection.IteratorHelper.write(_out,create_iterator(_arg0));
				break;
			}
			case 7: // 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 8: // 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 9: // is_empty
			{
				_out = handler.createReply();
				break;
			}
			case 10: // remove_element_at_position
			{
			try
			{
				int _arg0=_input.read_ulong();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.PositionInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 11: // 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 12: // remove_first_element
			{
			try
			{
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
				break;
			}
			case 13: // locate_first_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 14: // retrieve_last_element
			{
			try
			{
				_out = handler.createReply();
				_out.write_any(_arg0.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
				break;
			}
			case 15: // 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 16: // retrieve_first_element
			{
			try
			{
				_out = handler.createReply();
				_out.write_any(_arg0.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
				break;
			}
			case 17: // 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 18: // 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 19: // 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 20: // locate_previous_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 21: // 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 22: // 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 23: // _get_key_type
			{
			_out = handler.createReply();
				break;
			}
			case 24: // destroy
			{
				_out = handler.createReply();
				break;
			}
			case 25: // 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 26: // 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 27: // create_ordered_iterator
			{
				boolean _arg0=_input.read_boolean();
				boolean _arg1=_input.read_boolean();
				_out = handler.createReply();
				org.omg.CosCollection.OrderedIteratorHelper.write(_out,create_ordered_iterator(_arg0,_arg1));
				break;
			}
			case 28: // 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 29: // number_of_elements
			{
				_out = handler.createReply();
				break;
			}
			case 30: // 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 31: // locate_last_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 32: // 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 33: // number_of_different_keys
			{
				_out = handler.createReply();
				break;
			}
			case 34: // remove_all
			{
				_out = handler.createReply();
				break;
			}
			case 35: // 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 36: // 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 37: // 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 38: // remove_last_element
			{
			try
			{
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
				break;
			}
			case 39: // all_elements_do
			{
				org.omg.CosCollection.Command _arg0=org.omg.CosCollection.CommandHelper.read(_input);
				_out = handler.createReply();
				break;
			}
			case 40: // 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 41: // locate_previous_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 42: // 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;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X