本文整理匯總了Java中com.thales.ntis.subscriber.datex.VmsTextLineIndexVmsTextLine類的典型用法代碼示例。如果您正苦於以下問題:Java VmsTextLineIndexVmsTextLine類的具體用法?Java VmsTextLineIndexVmsTextLine怎麽用?Java VmsTextLineIndexVmsTextLine使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
VmsTextLineIndexVmsTextLine類屬於com.thales.ntis.subscriber.datex包,在下文中一共展示了VmsTextLineIndexVmsTextLine類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: handle
import com.thales.ntis.subscriber.datex.VmsTextLineIndexVmsTextLine; //導入依賴的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