Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosTime;


Generated from IDL interface "TIO".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:15
 
public abstract class TIOPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "overlaps", Integer.valueOf(0));
		.put ( "spans", Integer.valueOf(1));
		.put ( "_get_time_interval", Integer.valueOf(2));
		.put ( "time", Integer.valueOf(3));
	}
	private String[] ids = {"IDL:omg.org/CosTime/TIO:1.0"};
	public org.omg.CosTime.TIO _this()
	{
		org.omg.CosTime.TIO __r = org.omg.CosTime.TIOHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.CosTime.TIO __r = org.omg.CosTime.TIOHelper.narrow(__o);
		return __r;
	}
	{
		// 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: // overlaps
			{
				org.omg.CosTime.TIO _arg0=org.omg.CosTime.TIOHelper.read(_input);
				_out = handler.createReply();
				org.omg.CosTime.OverlapTypeHelper.write(_out,overlaps(_arg0,_arg1));
				org.omg.CosTime.TIOHelper.write(_out,_arg1.value);
				break;
			}
			case 1: // spans
			{
				org.omg.CosTime.UTO _arg0=org.omg.CosTime.UTOHelper.read(_input);
				_out = handler.createReply();
				org.omg.CosTime.OverlapTypeHelper.write(_out,spans(_arg0,_arg1));
				org.omg.CosTime.TIOHelper.write(_out,_arg1.value);
				break;
			}
			case 2: // _get_time_interval
			{
			_out = handler.createReply();
			org.omg.TimeBase.IntervalTHelper.write(_out,time_interval());
				break;
			}
			case 3: // time
			{
				_out = handler.createReply();
				org.omg.CosTime.UTOHelper.write(_out,time());
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X