Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosCollection;


Generated from IDL interface "SortedIterator".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:16
  
 
 public abstract class SortedIteratorPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "clone", Integer.valueOf(0));
 		.put ( "add_n_elements_set_iterator", Integer.valueOf(1));
 		.put ( "replace_element_set_to_previous", Integer.valueOf(2));
 		.put ( "is_valid", Integer.valueOf(3));
 		.put ( "remove_next_n_elements", Integer.valueOf(4));
 		.put ( "set_to_next_nth_element", Integer.valueOf(5));
 		.put ( "replace_element", Integer.valueOf(6));
 		.put ( "is_for_same", Integer.valueOf(7));
 		.put ( "is_reverse", Integer.valueOf(8));
 		.put ( "assign", Integer.valueOf(9));
 		.put ( "position", Integer.valueOf(10));
 		.put ( "retrieve_element", Integer.valueOf(11));
 		.put ( "set_to_first_element", Integer.valueOf(12));
 		.put ( "retrieve_next_n_elements", Integer.valueOf(13));
 		.put ( "replace_previous_n_elements", Integer.valueOf(14));
 		.put ( "set_to_previous_element", Integer.valueOf(15));
 		.put ( "is_last", Integer.valueOf(16));
 		.put ( "set_to_next_element", Integer.valueOf(17));
 		.put ( "set_to_nth_previous_element", Integer.valueOf(18));
 		.put ( "destroy", Integer.valueOf(19));
 		.put ( "set_to_last_element", Integer.valueOf(20));
 		.put ( "not_equal_retrieve_element_set_to_next", Integer.valueOf(21));
 		.put ( "not_equal_replace_element_set_to_previous", Integer.valueOf(22));
 		.put ( "remove_element_set_to_previous", Integer.valueOf(23));
 		.put ( "remove_element", Integer.valueOf(24));
 		.put ( "not_equal_remove_element_set_to_next", Integer.valueOf(25));
 		.put ( "is_equal", Integer.valueOf(26));
 		.put ( "retrieve_element_set_to_previous", Integer.valueOf(27));
 		.put ( "invalidate", Integer.valueOf(28));
 		.put ( "remove_element_set_to_next", Integer.valueOf(29));
 		.put ( "not_equal_remove_element_set_to_previous", Integer.valueOf(30));
 		.put ( "remove_previous_n_elements", Integer.valueOf(31));
 		.put ( "retrieve_previous_n_elements", Integer.valueOf(32));
 		.put ( "not_equal_replace_element_set_to_next", Integer.valueOf(33));
 		.put ( "replace_element_set_to_next", Integer.valueOf(34));
 		.put ( "is_for", Integer.valueOf(35));
 		.put ( "is_first", Integer.valueOf(36));
 		.put ( "add_element_set_iterator", Integer.valueOf(37));
 		.put ( "replace_next_n_elements", Integer.valueOf(38));
 		.put ( "not_equal_retrieve_element_set_to_previous", Integer.valueOf(39));
 		.put ( "retrieve_element_set_to_next", Integer.valueOf(40));
 		.put ( "is_const", Integer.valueOf(41));
 		.put ( "set_to_position", Integer.valueOf(42));
 		.put ( "is_in_between", Integer.valueOf(43));
 	}
 	private String[] ids = {"IDL:omg.org/CosCollection/SortedIterator:1.0","IDL:omg.org/CosCollection/Iterator:1.0","IDL:omg.org/CosCollection/OrderedIterator:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosCollection.SortedIterator __r = org.omg.CosCollection.SortedIteratorHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosCollection.SortedIterator __r = org.omg.CosCollection.SortedIteratorHelper.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: // clone
 			{
 				_out = handler.createReply();
 				org.omg.CosCollection.IteratorHelper.write(_out,_clone());
 				break;
 			}
 			case 1: // add_n_elements_set_iterator
 			{
 			try
 			{
 				org.omg.CORBA.Any[] _arg0=org.omg.CosCollection.AnySequenceHelper.read(_input);
 				_out = handler.createReply();
				_out.write_ulong(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 2: // replace_element_set_to_previous
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_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 3: // is_valid
			{
				_out = handler.createReply();
				break;
			}
			case 4: // remove_next_n_elements
			{
			try
			{
				int _arg0=_input.read_ulong();
				_out = handler.createReply();
				_out.write_ulong(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 5: // set_to_next_nth_element
			{
			try
			{
				int _arg0=_input.read_ulong();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 6: // replace_element
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_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 7: // is_for_same
			{
				org.omg.CosCollection.Iterator _arg0=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
				break;
			}
			case 8: // is_reverse
			{
				_out = handler.createReply();
				break;
			}
			case 9: // assign
			{
			try
			{
				org.omg.CosCollection.Iterator _arg0=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
				assign(_arg0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 10: // position
			{
			try
			{
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 11: // retrieve_element
			{
			try
			{
				_out = handler.createReply();
				_out.write_any(_arg0.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 12: // set_to_first_element
			{
				_out = handler.createReply();
				break;
			}
			case 13: // retrieve_next_n_elements
			{
			try
			{
				int _arg0=_input.read_ulong();
				_out = handler.createReply();
				_out.write_boolean(retrieve_next_n_elements(_arg0,_arg1,_arg2));
				org.omg.CosCollection.AnySequenceHelper.write(_out,_arg1.value);
				_out.write_boolean(_arg2.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 14: // replace_previous_n_elements
			{
			try
			{
				org.omg.CORBA.Any[] _arg0=org.omg.CosCollection.AnySequenceHelper.read(_input);
				_out = handler.createReply();
				_out.write_ulong(_arg1.value);
			}
			{
				_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 15: // set_to_previous_element
			{
			try
			{
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 16: // is_last
			{
				_out = handler.createReply();
				break;
			}
			case 17: // set_to_next_element
			{
			try
			{
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 18: // set_to_nth_previous_element
			{
			try
			{
				int _arg0=_input.read_ulong();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 19: // destroy
			{
				_out = handler.createReply();
				break;
			}
			case 20: // set_to_last_element
			{
				_out = handler.createReply();
				break;
			}
			case 21: // not_equal_retrieve_element_set_to_next
			{
			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 22: // not_equal_replace_element_set_to_previous
			{
			try
			{
				org.omg.CosCollection.Iterator _arg0=org.omg.CosCollection.IteratorHelper.read(_input);
				org.omg.CORBA.Any _arg1=_input.read_any();
				_out = handler.createReply();
			}
			{
				_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 23: // remove_element_set_to_previous
			{
			try
			{
				_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 24: // remove_element
			{
			try
			{
				_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 25: // not_equal_remove_element_set_to_next
			{
			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 26: // is_equal
			{
			try
			{
				org.omg.CosCollection.Iterator _arg0=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
				_out.write_boolean(is_equal(_arg0));
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 27: // retrieve_element_set_to_previous
			{
			try
			{
				_out = handler.createReply();
				_out.write_any(_arg0.value);
				_out.write_boolean(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 28: // invalidate
			{
				_out = handler.createReply();
				break;
			}
			case 29: // remove_element_set_to_next
			{
			try
			{
				_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 30: // not_equal_remove_element_set_to_previous
			{
			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: // remove_previous_n_elements
			{
			try
			{
				int _arg0=_input.read_ulong();
				_out = handler.createReply();
				_out.write_ulong(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 32: // retrieve_previous_n_elements
			{
			try
			{
				int _arg0=_input.read_ulong();
				_out = handler.createReply();
				org.omg.CosCollection.AnySequenceHelper.write(_out,_arg1.value);
				_out.write_boolean(_arg2.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 33: // not_equal_replace_element_set_to_next
			{
			try
			{
				org.omg.CosCollection.Iterator _arg0=org.omg.CosCollection.IteratorHelper.read(_input);
				org.omg.CORBA.Any _arg1=_input.read_any();
				_out = handler.createReply();
			}
			{
				_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 34: // replace_element_set_to_next
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_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 35: // is_for
			{
				org.omg.CosCollection.Collection _arg0=org.omg.CosCollection.CollectionHelper.read(_input);
				_out = handler.createReply();
				_out.write_boolean(is_for(_arg0));
				break;
			}
			case 36: // is_first
			{
				_out = handler.createReply();
				break;
			}
			case 37: // add_element_set_iterator
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 38: // replace_next_n_elements
			{
			try
			{
				org.omg.CORBA.Any[] _arg0=org.omg.CosCollection.AnySequenceHelper.read(_input);
				_out = handler.createReply();
				_out.write_ulong(_arg1.value);
			}
			{
				_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 39: // not_equal_retrieve_element_set_to_previous
			{
			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 40: // retrieve_element_set_to_next
			{
			try
			{
				_out = handler.createReply();
				_out.write_any(_arg0.value);
				_out.write_boolean(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInBetweenHelper.write(_out_ex1);
			}
				break;
			}
			case 41: // is_const
			{
				_out = handler.createReply();
				break;
			}
			case 42: // set_to_position
			{
			try
			{
				int _arg0=_input.read_ulong();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.PositionInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 43: // is_in_between
			{
				_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