package com.vci.corba.omd; /** * Generated from IDL interface "OMDService". * * @author JacORB IDL compiler V 3.9 * @version generated at 2022-12-23 15:42:24 */ public abstract class OMDServicePOA extends org.omg.PortableServer.Servant implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.omd.OMDServiceOperations { static private final java.util.HashMap m_opsHash = new java.util.HashMap(); static { m_opsHash.put ( "getEnumService", Integer.valueOf(0)); m_opsHash.put ( "getStateService", Integer.valueOf(1)); m_opsHash.put ( "getBTMService", Integer.valueOf(2)); m_opsHash.put ( "getDDLService", Integer.valueOf(3)); m_opsHash.put ( "getAttributeService", Integer.valueOf(4)); m_opsHash.put ( "getLifeCycleService", Integer.valueOf(5)); m_opsHash.put ( "getVerRuleService", Integer.valueOf(6)); m_opsHash.put ( "getLinkTypeService", Integer.valueOf(7)); m_opsHash.put ( "getSysModelData", Integer.valueOf(8)); } private String[] ids = {"IDL:com/vci/corba/omd/OMDService:1.0"}; public com.vci.corba.omd.OMDService _this() { org.omg.CORBA.Object __o = _this_object() ; com.vci.corba.omd.OMDService __r = com.vci.corba.omd.OMDServiceHelper.narrow(__o); return __r; } public com.vci.corba.omd.OMDService _this(org.omg.CORBA.ORB orb) { org.omg.CORBA.Object __o = _this_object(orb) ; com.vci.corba.omd.OMDService __r = com.vci.corba.omd.OMDServiceHelper.narrow(__o); return __r; } public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // getEnumService { try { _out = handler.createReply(); com.vci.corba.omd.enumManager.EnumServiceHelper.write(_out,getEnumService()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 1: // getStateService { try { _out = handler.createReply(); com.vci.corba.omd.statePoolManager.StatePoolServiceHelper.write(_out,getStateService()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 2: // getBTMService { try { _out = handler.createReply(); com.vci.corba.omd.btm.BTMServiceHelper.write(_out,getBTMService()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 3: // getDDLService { try { _out = handler.createReply(); com.vci.corba.omd.ddl.DDLServiceHelper.write(_out,getDDLService()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 4: // getAttributeService { try { _out = handler.createReply(); com.vci.corba.omd.attribpool.AttPoolServiceHelper.write(_out,getAttributeService()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 5: // getLifeCycleService { try { _out = handler.createReply(); com.vci.corba.omd.lifecycleManager.LifeCycleServiceHelper.write(_out,getLifeCycleService()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 6: // getVerRuleService { try { _out = handler.createReply(); com.vci.corba.omd.versionRuleManager.VersionRuleServiceHelper.write(_out,getVerRuleService()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 7: // getLinkTypeService { try { _out = handler.createReply(); com.vci.corba.omd.linkTypeManager.LinkTypeServiceHelper.write(_out,getLinkTypeService()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 8: // getSysModelData { try { java.lang.String[] _arg0=com.vci.corba.common.data.WStringArrayHelper.read(_input); _out = handler.createReply(); com.vci.corba.omd.data.SystemModelDataHelper.write(_out,getSysModelData(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } } return _out; } public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) { return ids; } }