Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosCollection;


Generated from IDL interface "Set".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:16
  
 
 public abstract class SetPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "locate_or_add_element_set_iterator", Integer.valueOf(0));
 		.put ( "number_of_elements", Integer.valueOf(1));
 		.put ( "locate_element", Integer.valueOf(2));
 		.put ( "retrieve_element_at", Integer.valueOf(3));
 		.put ( "_get_element_type", Integer.valueOf(4));
 		.put ( "remove_element", Integer.valueOf(5));
 		.put ( "number_of_different_elements", Integer.valueOf(6));
 		.put ( "contains_element", Integer.valueOf(7));
 		.put ( "remove_element_at", Integer.valueOf(8));
 		.put ( "add_element", Integer.valueOf(9));
 		.put ( "locate_next_different_element", Integer.valueOf(10));
 		.put ( "is_empty", Integer.valueOf(11));
 		.put ( "create_iterator", Integer.valueOf(12));
 		.put ( "locate_next_element", Integer.valueOf(13));
 		.put ( "contains_all_from", Integer.valueOf(14));
 		.put ( "locate_or_add_element", Integer.valueOf(15));
 		.put ( "number_of_occurrences", Integer.valueOf(16));
 		.put ( "add_element_set_iterator", Integer.valueOf(17));
 		.put ( "remove_all", Integer.valueOf(18));
 		.put ( "destroy", Integer.valueOf(19));
 		.put ( "add_all_from", Integer.valueOf(20));
 		.put ( "replace_element_at", Integer.valueOf(21));
 		.put ( "all_elements_do", Integer.valueOf(22));
 		.put ( "remove_all_occurrences", Integer.valueOf(23));
 	}
 	private String[] ids = {"IDL:omg.org/CosCollection/Set:1.0","IDL:omg.org/CosCollection/Collection:1.0","IDL:omg.org/CosCollection/EqualityCollection:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosCollection.Set __r = org.omg.CosCollection.SetHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosCollection.Set __r = org.omg.CosCollection.SetHelper.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_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 1: // number_of_elements
 			{
 				_out = handler.createReply();
 				break;
 			}
 			case 2: // 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 3: // 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 4: // _get_element_type
			{
			_out = handler.createReply();
				break;
			}
			case 5: // 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 6: // number_of_different_elements
			{
				_out = handler.createReply();
				break;
			}
			case 7: // 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 8: // 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 9: // 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 10: // 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;
			}
			case 11: // is_empty
			{
				_out = handler.createReply();
				break;
			}
			case 12: // create_iterator
			{
				boolean _arg0=_input.read_boolean();
				_out = handler.createReply();
				org.omg.CosCollection.IteratorHelper.write(_out,create_iterator(_arg0));
				break;
			}
			case 13: // 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 = handler.createExceptionReply();
				org.omg.CosCollection.ElementInvalidHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosCollection.IteratorInvalidHelper.write(_out_ex1);
			}
				break;
			}
			case 14: // 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 15: // 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 16: // 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 17: // 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 18: // remove_all
			{
				_out = handler.createReply();
				break;
			}
			case 19: // destroy
			{
				_out = handler.createReply();
				break;
			}
			case 20: // 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 21: // 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 22: // all_elements_do
			{
				org.omg.CosCollection.Command _arg0=org.omg.CosCollection.CommandHelper.read(_input);
				_out = handler.createReply();
				break;
			}
			case 23: // 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;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X