Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosCollection;


Generated from IDL interface "EqualitySequentialCollection".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:16
  
 
 public abstract class EqualitySequentialCollectionPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "locate_next_element", Integer.valueOf(0));
 		.put ( "contains_element", Integer.valueOf(1));
 		.put ( "locate_or_add_element_set_iterator", Integer.valueOf(2));
 		.put ( "number_of_different_elements", Integer.valueOf(3));
 		.put ( "_get_element_type", Integer.valueOf(4));
 		.put ( "create_iterator", Integer.valueOf(5));
 		.put ( "retrieve_element_at_position", Integer.valueOf(6));
 		.put ( "locate_first_element_with_value", Integer.valueOf(7));
 		.put ( "add_element_as_first", Integer.valueOf(8));
 		.put ( "add_element_as_previous", Integer.valueOf(9));
 		.put ( "is_empty", Integer.valueOf(10));
 		.put ( "remove_element_at_position", Integer.valueOf(11));
 		.put ( "locate_or_add_element", Integer.valueOf(12));
 		.put ( "remove_first_element", Integer.valueOf(13));
 		.put ( "remove_all_occurrences", Integer.valueOf(14));
 		.put ( "retrieve_last_element", Integer.valueOf(15));
 		.put ( "locate_last_element_with_value", Integer.valueOf(16));
 		.put ( "retrieve_first_element", Integer.valueOf(17));
 		.put ( "remove_element", Integer.valueOf(18));
 		.put ( "locate_element", Integer.valueOf(19));
 		.put ( "add_element", Integer.valueOf(20));
 		.put ( "add_element_as_last", Integer.valueOf(21));
 		.put ( "add_element_at_position_set_iterator", Integer.valueOf(22));
 		.put ( "replace_element_at", Integer.valueOf(23));
 		.put ( "add_element_at_position", Integer.valueOf(24));
 		.put ( "retrieve_element_at", Integer.valueOf(25));
 		.put ( "destroy", Integer.valueOf(26));
 		.put ( "replace_last_element", Integer.valueOf(27));
 		.put ( "sort", Integer.valueOf(28));
 		.put ( "contains_all_from", Integer.valueOf(29));
 		.put ( "create_ordered_iterator", Integer.valueOf(30));
 		.put ( "add_all_from", Integer.valueOf(31));
 		.put ( "number_of_elements", Integer.valueOf(32));
 		.put ( "replace_element_at_position", Integer.valueOf(33));
 		.put ( "add_element_as_last_set_iterator", Integer.valueOf(34));
 		.put ( "locate_previous_element_with_value", Integer.valueOf(35));
 		.put ( "remove_element_at", Integer.valueOf(36));
 		.put ( "number_of_occurrences", Integer.valueOf(37));
 		.put ( "replace_first_element", Integer.valueOf(38));
 		.put ( "reverse", Integer.valueOf(39));
 		.put ( "remove_all", Integer.valueOf(40));
 		.put ( "add_element_set_iterator", Integer.valueOf(41));
 		.put ( "add_element_as_next", Integer.valueOf(42));
 		.put ( "remove_last_element", Integer.valueOf(43));
 		.put ( "all_elements_do", Integer.valueOf(44));
 		.put ( "add_element_as_first_set_iterator", Integer.valueOf(45));
 		.put ( "locate_next_different_element", Integer.valueOf(46));
 	}
 	private String[] ids = {"IDL:omg.org/CosCollection/EqualitySequentialCollection:1.0","IDL:omg.org/CosCollection/SequentialCollection:1.0","IDL:omg.org/CosCollection/Collection:1.0","IDL:omg.org/CosCollection/OrderedCollection:1.0","IDL:omg.org/CosCollection/EqualityCollection:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosCollection.EqualitySequentialCollection __r = org.omg.CosCollection.EqualitySequentialCollectionHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosCollection.EqualitySequentialCollection __r = org.omg.CosCollection.EqualitySequentialCollectionHelper.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: // locate_next_element
 			{
 			try
 			{
 				org.omg.CORBA.Any _arg0=_input.read_any();
 				org.omg.CosCollection.Iterator _arg1=org.omg.CosCollection.IteratorHelper.read(_input);
 				_out = handler.createReply();
 				_out.write_boolean(locate_next_element(_arg0,_arg1));
 			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 1: // contains_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 2: // locate_or_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 3: // number_of_different_elements
			{
				_out = handler.createReply();
				break;
			}
			case 4: // _get_element_type
			{
			_out = handler.createReply();
				break;
			}
			case 5: // create_iterator
			{
				boolean _arg0=_input.read_boolean();
				_out = handler.createReply();
				org.omg.CosCollection.IteratorHelper.write(_out,create_iterator(_arg0));
				break;
			}
			case 6: // 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 7: // locate_first_element_with_value
			{
			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 8: // add_element_as_first
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 9: // add_element_as_previous
			{
			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 10: // is_empty
			{
				_out = handler.createReply();
				break;
			}
			case 11: // 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 12: // locate_or_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 13: // remove_first_element
			{
			try
			{
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
				break;
			}
			case 14: // remove_all_occurrences
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 15: // retrieve_last_element
			{
			try
			{
				_out = handler.createReply();
				_out.write_any(_arg0.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
				break;
			}
			case 16: // locate_last_element_with_value
			{
			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: // retrieve_first_element
			{
			try
			{
				_out = handler.createReply();
				_out.write_any(_arg0.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
				break;
			}
			case 18: // remove_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 19: // locate_element
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				org.omg.CosCollection.Iterator _arg1=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
				_out.write_boolean(locate_element(_arg0,_arg1));
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 20: // 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 21: // add_element_as_last
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
				break;
			}
			case 22: // add_element_at_position_set_iterator
			{
			try
			{
				int _arg0=_input.read_ulong();
				org.omg.CORBA.Any _arg1=_input.read_any();
				org.omg.CosCollection.Iterator _arg2=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.PositionInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex2);
			}
				break;
			}
			case 23: // 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 24: // add_element_at_position
			{
			try
			{
				int _arg0=_input.read_ulong();
				org.omg.CORBA.Any _arg1=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.PositionInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 25: // 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 26: // destroy
			{
				_out = handler.createReply();
				break;
			}
			case 27: // replace_last_element
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 28: // sort
			{
				org.omg.CosCollection.Comparator _arg0=org.omg.CosCollection.ComparatorHelper.read(_input);
				_out = handler.createReply();
				sort(_arg0);
				break;
			}
			case 29: // contains_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: // 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 31: // 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 32: // number_of_elements
			{
				_out = handler.createReply();
				break;
			}
			case 33: // replace_element_at_position
			{
			try
			{
				int _arg0=_input.read_ulong();
				org.omg.CORBA.Any _arg1=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.PositionInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 34: // add_element_as_last_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 35: // locate_previous_element_with_value
			{
			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 36: // 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 37: // number_of_occurrences
			{
			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_first_element
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 39: // reverse
			{
				_out = handler.createReply();
				break;
			}
			case 40: // remove_all
			{
				_out = handler.createReply();
				break;
			}
			case 41: // 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 42: // add_element_as_next
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				org.omg.CosCollection.Iterator _arg1=org.omg.CosCollection.IteratorHelper.read(_input);
				_out = handler.createReply();
				add_element_as_next(_arg0,_arg1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 43: // remove_last_element
			{
			try
			{
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.EmptyCollectionHelper.write(_out_ex0);
			}
				break;
			}
			case 44: // all_elements_do
			{
				org.omg.CosCollection.Command _arg0=org.omg.CosCollection.CommandHelper.read(_input);
				_out = handler.createReply();
				break;
			}
			case 45: // add_element_as_first_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 46: // locate_next_different_element
			{
			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;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X