本文整理汇总了Java中com.thales.ntis.subscriber.datex.VmsUnit类的典型用法代码示例。如果您正苦于以下问题:Java VmsUnit类的具体用法?Java VmsUnit怎么用?Java VmsUnit使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
VmsUnit类属于com.thales.ntis.subscriber.datex包,在下文中一共展示了VmsUnit类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handle
import com.thales.ntis.subscriber.datex.VmsUnit; //导入依赖的package包/类
@Override
public void handle(D2LogicalModel d2LogicalModel) {
LOG.info("handling VMS Request !");
try {
VmsPublication payloadPublication = (VmsPublication)
d2LogicalModel.getPayloadPublication();
if (payloadPublication != null) {
VmsUnit vmsUnit =
payloadPublication.getVmsUnit().get(0);
if (vmsUnit != null) {
LOG.info("Vmsunit GUID: " + vmsUnit.getVmsUnitReference().getId());
List<VmsUnitVmsIndexVms> vmsIndexList = vmsUnit.getVms();
if (vmsIndexList.size() > 0) {
VmsUnitVmsIndexVms vmsUnitVmsIndexVms =
vmsIndexList.get(0);
List<VmsMessageIndexVmsMessage> vmsMessageList =
vmsUnitVmsIndexVms.getVms().getVmsMessage();
if (vmsMessageList.size() > 0) {
VmsMessage vmsMessage =
vmsMessageList.get(0).getVmsMessage();
List<TextPage> textPageList =
vmsMessage.getTextPage();
if (textPageList.size() > 0) {
TextPage textPage = textPageList.get(0);
VmsText vmsText =
textPage.getVmsText();
List<VmsTextLineIndexVmsTextLine> vmsTextLineList = vmsText.getVmsTextLine();
if (vmsTextLineList.size() > 0) {
VmsTextLineIndexVmsTextLine vmsTextLineIndexVmsTextLine = vmsTextLineList.get(0);
LOG.info(" vms text line " +
vmsTextLineIndexVmsTextLine.getVmsTextLine().getVmsTextLine());
}
}
}
}
}
}
} catch (Exception e) {
LOG.error(e.getMessage());
}
LOG.info("VMSTraffic Data Request: Processing Completed Successfuly");
}
开发者ID:ntisservices,项目名称:OBSOLETE-ntis-java-web-services-Release2.4,代码行数:48,代码来源:VMSTrafficDataServiceImpl.java