org.ccsds.moims.mo.mal.structures.Union.getBooleanValue()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(24.0k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.ccsds.moims.mo.mal.structures.Union.getBooleanValue()方法的一些代码示例,展示了Union.getBooleanValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Union.getBooleanValue()方法的具体详情如下:
包路径:org.ccsds.moims.mo.mal.structures.Union
类名称:Union
方法名:getBooleanValue

Union.getBooleanValue介绍

暂无

代码示例

代码示例来源:origin: int.esa.nmf.core/helper-tools

return (boolean) ((Union) obj).getBooleanValue();

代码示例来源:origin: int.esa.nmf.core/helper-tools

double dou = ((Union) in).getBooleanValue() ? 1 : 0;
return dou;

代码示例来源:origin: int.esa.nmf.core/helper-tools

if (((Union) in).getBooleanValue() == null) {
  return "";
String dou = ((Union) in).getBooleanValue() ? "true" : "false";
return dou;

代码示例来源:origin: int.esa.ccsds.mo/API_COMMON

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleInvoke(org.ccsds.moims.mo.mal.provider.MALInvoke interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._STORECURRENT_OP_NUMBER:
   storeCurrent((org.ccsds.moims.mo.com.structures.ObjectKey) body.getBodyElement(0, new org.ccsds.moims.mo.com.structures.ObjectKey()), (org.ccsds.moims.mo.common.structures.ServiceKey) body.getBodyElement(1, new org.ccsds.moims.mo.common.structures.ServiceKey()), (body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), new StoreCurrentInteraction(interaction));
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.ccsds.mo/API_COMMON

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleInvoke(org.ccsds.moims.mo.mal.provider.MALInvoke interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._STORECURRENT_OP_NUMBER:
   delegate.storeCurrent((org.ccsds.moims.mo.com.structures.ObjectKey) body.getBodyElement(0, new org.ccsds.moims.mo.com.structures.ObjectKey()), (org.ccsds.moims.mo.common.structures.ServiceKey) body.getBodyElement(1, new org.ccsds.moims.mo.common.structures.ServiceKey()), (body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), new StoreCurrentInteraction(interaction));
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleProgress(org.ccsds.moims.mo.mal.provider.MALProgress interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.com.archive.ArchiveHelper._QUERY_OP_NUMBER:
   delegate.query((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (org.ccsds.moims.mo.com.structures.ObjectType) body.getBodyElement(1, new org.ccsds.moims.mo.com.structures.ObjectType()), (org.ccsds.moims.mo.com.archive.structures.ArchiveQueryList) body.getBodyElement(2, new org.ccsds.moims.mo.com.archive.structures.ArchiveQueryList()), (org.ccsds.moims.mo.com.archive.structures.QueryFilterList) body.getBodyElement(3, null), new QueryInteraction(interaction));
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleProgress(org.ccsds.moims.mo.mal.provider.MALProgress interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.com.archive.ArchiveHelper._QUERY_OP_NUMBER:
   query((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (org.ccsds.moims.mo.com.structures.ObjectType) body.getBodyElement(1, new org.ccsds.moims.mo.com.structures.ObjectType()), (org.ccsds.moims.mo.com.archive.structures.ArchiveQueryList) body.getBodyElement(2, new org.ccsds.moims.mo.com.archive.structures.ArchiveQueryList()), (org.ccsds.moims.mo.com.archive.structures.QueryFilterList) body.getBodyElement(3, null), new QueryInteraction(interaction));
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.api/platform

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleSubmit(org.ccsds.moims.mo.mal.provider.MALSubmit interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.platform.softwaredefinedradio.SoftwareDefinedRadioHelper._ENABLESDR_OP_NUMBER:
   enableSDR((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (org.ccsds.moims.mo.platform.softwaredefinedradio.structures.SDRConfiguration) body.getBodyElement(1, new org.ccsds.moims.mo.platform.softwaredefinedradio.structures.SDRConfiguration()), (org.ccsds.moims.mo.mal.structures.Duration) body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.Duration()), interaction);
   interaction.sendAcknowledgement();
   break;
  case org.ccsds.moims.mo.platform.softwaredefinedradio.SoftwareDefinedRadioHelper._UPDATECONFIGURATION_OP_NUMBER:
   updateConfiguration((org.ccsds.moims.mo.platform.softwaredefinedradio.structures.SDRConfiguration) body.getBodyElement(0, new org.ccsds.moims.mo.platform.softwaredefinedradio.structures.SDRConfiguration()), interaction);
   interaction.sendAcknowledgement();
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.api/platform

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleSubmit(org.ccsds.moims.mo.mal.provider.MALSubmit interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.platform.softwaredefinedradio.SoftwareDefinedRadioHelper._ENABLESDR_OP_NUMBER:
   delegate.enableSDR((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (org.ccsds.moims.mo.platform.softwaredefinedradio.structures.SDRConfiguration) body.getBodyElement(1, new org.ccsds.moims.mo.platform.softwaredefinedradio.structures.SDRConfiguration()), (org.ccsds.moims.mo.mal.structures.Duration) body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.Duration()), interaction);
   interaction.sendAcknowledgement();
   break;
  case org.ccsds.moims.mo.platform.softwaredefinedradio.SoftwareDefinedRadioHelper._UPDATECONFIGURATION_OP_NUMBER:
   delegate.updateConfiguration((org.ccsds.moims.mo.platform.softwaredefinedradio.structures.SDRConfiguration) body.getBodyElement(0, new org.ccsds.moims.mo.platform.softwaredefinedradio.structures.SDRConfiguration()), interaction);
   interaction.sendAcknowledgement();
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.api/platform

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleRequest(org.ccsds.moims.mo.mal.provider.MALRequest interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.platform.powercontrol.PowerControlHelper._LISTUNITSAVAILABLE_OP_NUMBER:
   org.ccsds.moims.mo.platform.powercontrol.body.ListUnitsAvailableResponse listUnitsAvailableRt = listUnitsAvailable((org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.IdentifierList()), interaction);
   interaction.sendResponse(listUnitsAvailableRt.getBodyElement0(), listUnitsAvailableRt.getBodyElement1());
   break;
  case org.ccsds.moims.mo.platform.powercontrol.PowerControlHelper._ENABLEUNIT_OP_NUMBER:
   enableUnit((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), interaction);
   interaction.sendResponse();
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.api/platform

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleRequest(org.ccsds.moims.mo.mal.provider.MALRequest interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.platform.powercontrol.PowerControlHelper._LISTUNITSAVAILABLE_OP_NUMBER:
   org.ccsds.moims.mo.platform.powercontrol.body.ListUnitsAvailableResponse listUnitsAvailableRt = delegate.listUnitsAvailable((org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.IdentifierList()), interaction);
   interaction.sendResponse(listUnitsAvailableRt.getBodyElement0(), listUnitsAvailableRt.getBodyElement1());
   break;
  case org.ccsds.moims.mo.platform.powercontrol.PowerControlHelper._ENABLEUNIT_OP_NUMBER:
   delegate.enableUnit((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), interaction);
   interaction.sendResponse();
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleRequest(org.ccsds.moims.mo.mal.provider.MALRequest interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.com.archive.ArchiveHelper._STORE_OP_NUMBER:
   interaction.sendResponse(delegate.store((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (org.ccsds.moims.mo.com.structures.ObjectType) body.getBodyElement(1, new org.ccsds.moims.mo.com.structures.ObjectType()), (org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.IdentifierList()), (org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList) body.getBodyElement(3, new org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList()), (org.ccsds.moims.mo.mal.structures.ElementList) body.getBodyElement(4, null), interaction));
   break;
  case org.ccsds.moims.mo.com.archive.ArchiveHelper._DELETE_OP_NUMBER:
   interaction.sendResponse(delegate.delete((org.ccsds.moims.mo.com.structures.ObjectType) body.getBodyElement(0, new org.ccsds.moims.mo.com.structures.ObjectType()), (org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.IdentifierList()), (org.ccsds.moims.mo.mal.structures.LongList) body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.LongList()), interaction));
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleRequest(org.ccsds.moims.mo.mal.provider.MALRequest interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.com.archive.ArchiveHelper._STORE_OP_NUMBER:
   interaction.sendResponse(store((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (org.ccsds.moims.mo.com.structures.ObjectType) body.getBodyElement(1, new org.ccsds.moims.mo.com.structures.ObjectType()), (org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.IdentifierList()), (org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList) body.getBodyElement(3, new org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList()), (org.ccsds.moims.mo.mal.structures.ElementList) body.getBodyElement(4, null), interaction));
   break;
  case org.ccsds.moims.mo.com.archive.ArchiveHelper._DELETE_OP_NUMBER:
   interaction.sendResponse(delete((org.ccsds.moims.mo.com.structures.ObjectType) body.getBodyElement(0, new org.ccsds.moims.mo.com.structures.ObjectType()), (org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.IdentifierList()), (org.ccsds.moims.mo.mal.structures.LongList) body.getBodyElement(2, new org.ccsds.moims.mo.mal.structures.LongList()), interaction));
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.ccsds.mo/API_COMMON

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleRequest(org.ccsds.moims.mo.mal.provider.MALRequest interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._LIST_OP_NUMBER:
   interaction.sendResponse(delegate.list((org.ccsds.moims.mo.common.configuration.structures.ConfigurationType) body.getBodyElement(0, org.ccsds.moims.mo.common.configuration.structures.ConfigurationType.PROVIDER), (org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.IdentifierList()), (org.ccsds.moims.mo.common.structures.ServiceKey) body.getBodyElement(2, new org.ccsds.moims.mo.common.structures.ServiceKey()), interaction));
   break;
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._GETCURRENT_OP_NUMBER:
   interaction.sendResponse(delegate.getCurrent((org.ccsds.moims.mo.com.structures.ObjectKey) body.getBodyElement(0, new org.ccsds.moims.mo.com.structures.ObjectKey()), (org.ccsds.moims.mo.common.structures.ServiceKey) body.getBodyElement(1, new org.ccsds.moims.mo.common.structures.ServiceKey()), interaction));
   break;
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._EXPORTXML_OP_NUMBER:
   interaction.sendResponse(delegate.exportXML((org.ccsds.moims.mo.com.structures.ObjectId) body.getBodyElement(0, new org.ccsds.moims.mo.com.structures.ObjectId()), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), interaction));
   break;
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._IMPORTXML_OP_NUMBER:
   interaction.sendResponse(delegate.importXML((org.ccsds.moims.mo.mal.structures.File) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.File()), interaction));
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

代码示例来源:origin: int.esa.ccsds.mo/API_COMMON

/**
 * Called by the provider MAL layer on reception of a message to handle the interaction.
 * @param interaction interaction the interaction object.
 * @param body body the message body.
 * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
 * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
 */
public void handleRequest(org.ccsds.moims.mo.mal.provider.MALRequest interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
 switch (interaction.getOperation().getNumber().getValue())
 {
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._LIST_OP_NUMBER:
   interaction.sendResponse(list((org.ccsds.moims.mo.common.configuration.structures.ConfigurationType) body.getBodyElement(0, org.ccsds.moims.mo.common.configuration.structures.ConfigurationType.PROVIDER), (org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.IdentifierList()), (org.ccsds.moims.mo.common.structures.ServiceKey) body.getBodyElement(2, new org.ccsds.moims.mo.common.structures.ServiceKey()), interaction));
   break;
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._GETCURRENT_OP_NUMBER:
   interaction.sendResponse(getCurrent((org.ccsds.moims.mo.com.structures.ObjectKey) body.getBodyElement(0, new org.ccsds.moims.mo.com.structures.ObjectKey()), (org.ccsds.moims.mo.common.structures.ServiceKey) body.getBodyElement(1, new org.ccsds.moims.mo.common.structures.ServiceKey()), interaction));
   break;
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._EXPORTXML_OP_NUMBER:
   interaction.sendResponse(exportXML((org.ccsds.moims.mo.com.structures.ObjectId) body.getBodyElement(0, new org.ccsds.moims.mo.com.structures.ObjectId()), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), interaction));
   break;
  case org.ccsds.moims.mo.common.configuration.ConfigurationHelper._IMPORTXML_OP_NUMBER:
   interaction.sendResponse(importXML((org.ccsds.moims.mo.mal.structures.File) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.File()), interaction));
   break;
  default:
   interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
 }
}

相关文章