Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosNotifyFilter;


Generated from IDL interface "MappingFilter".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:19
  
 
 public abstract class MappingFilterPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "add_mapping_constraints", Integer.valueOf(0));
 		.put ( "match_typed", Integer.valueOf(1));
 		.put ( "_get_constraint_grammar", Integer.valueOf(2));
 		.put ( "modify_mapping_constraints", Integer.valueOf(3));
 		.put ( "_get_value_type", Integer.valueOf(4));
 		.put ( "_get_default_value", Integer.valueOf(5));
 		.put ( "remove_all_mapping_constraints", Integer.valueOf(6));
 		.put ( "destroy", Integer.valueOf(7));
 		.put ( "get_mapping_constraints", Integer.valueOf(8));
 		.put ( "match_structured", Integer.valueOf(9));
 		.put ( "get_all_mapping_constraints", Integer.valueOf(10));
 		.put ( "match", Integer.valueOf(11));
 	}
 	private String[] ids = {"IDL:omg.org/CosNotifyFilter/MappingFilter:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosNotifyFilter.MappingFilter __r = org.omg.CosNotifyFilter.MappingFilterHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosNotifyFilter.MappingFilter __r = org.omg.CosNotifyFilter.MappingFilterHelper.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_mapping_constraints
 			{
 			try
 			{
 				org.omg.CosNotifyFilter.MappingConstraintPair[] _arg0=org.omg.CosNotifyFilter.MappingConstraintPairSeqHelper.read(_input);
 				_out = handler.createReply();
 				org.omg.CosNotifyFilter.MappingConstraintInfoSeqHelper.write(_out,add_mapping_constraints(_arg0));
 			}
 			{
 				_out = handler.createExceptionReply();
 				org.omg.CosNotifyFilter.InvalidValueHelper.write(_out_ex0);
 			}
 			{
 				_out = handler.createExceptionReply();
 				org.omg.CosNotifyFilter.InvalidConstraintHelper.write(_out_ex1);
 			}
 				break;
 			}
 			case 1: // match_typed
 			{
 			try
 			{
 				org.omg.CosNotification.Property[] _arg0=org.omg.CosNotification.PropertySeqHelper.read(_input);
 				_out = handler.createReply();
 				_out.write_boolean(match_typed(_arg0,_arg1));
 				_out.write_any(_arg1.value);
 			}
 			{
 				_out = handler.createExceptionReply();
 				org.omg.CosNotifyFilter.UnsupportedFilterableDataHelper.write(_out_ex0);
 			}
 				break;
 			}
 			case 2: // _get_constraint_grammar
 			{
 			_out = handler.createReply();
 			java.lang.String tmpResult2 = constraint_grammar();
 _out.write_stringtmpResult2 );
 				break;
 			}
 			case 3: // modify_mapping_constraints
			{
			try
			{
				int[] _arg0=org.omg.CosNotifyFilter.ConstraintIDSeqHelper.read(_input);
				org.omg.CosNotifyFilter.MappingConstraintInfo[] _arg1=org.omg.CosNotifyFilter.MappingConstraintInfoSeqHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.ConstraintNotFoundHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.InvalidValueHelper.write(_out_ex1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.InvalidConstraintHelper.write(_out_ex2);
			}
				break;
			}
			case 4: // _get_value_type
			{
			_out = handler.createReply();
				break;
			}
			case 5: // _get_default_value
			{
			_out = handler.createReply();
				break;
			}
			case 6: // remove_all_mapping_constraints
			{
				_out = handler.createReply();
				break;
			}
			case 7: // destroy
			{
				_out = handler.createReply();
				break;
			}
			case 8: // get_mapping_constraints
			{
			try
			{
				int[] _arg0=org.omg.CosNotifyFilter.ConstraintIDSeqHelper.read(_input);
				_out = handler.createReply();
				org.omg.CosNotifyFilter.MappingConstraintInfoSeqHelper.write(_out,get_mapping_constraints(_arg0));
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.ConstraintNotFoundHelper.write(_out_ex0);
			}
				break;
			}
			case 9: // match_structured
			{
			try
			{
				org.omg.CosNotification.StructuredEvent _arg0=org.omg.CosNotification.StructuredEventHelper.read(_input);
				_out = handler.createReply();
				_out.write_boolean(match_structured(_arg0,_arg1));
				_out.write_any(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.UnsupportedFilterableDataHelper.write(_out_ex0);
			}
				break;
			}
			case 10: // get_all_mapping_constraints
			{
				_out = handler.createReply();
				org.omg.CosNotifyFilter.MappingConstraintInfoSeqHelper.write(_out,get_all_mapping_constraints());
				break;
			}
			case 11: // match
			{
			try
			{
				org.omg.CORBA.Any _arg0=_input.read_any();
				_out = handler.createReply();
				_out.write_boolean(match(_arg0,_arg1));
				_out.write_any(_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.UnsupportedFilterableDataHelper.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