gpt4 book ai didi

org.opendaylight.controller.config.util.xml.XmlElement.fromDomElementWithExpected()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 02:49:05 26 4
gpt4 key购买 nike

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

XmlElement.fromDomElementWithExpected介绍

暂无

代码示例

代码示例来源:origin: org.opendaylight.netconf/netconf-util

protected static XmlElement getRequestElementWithCheck(final Document message) throws DocumentedException {
  return XmlElement.fromDomElementWithExpected(message.getDocumentElement(), XmlNetconfConstants.RPC_KEY,
      XmlNetconfConstants.URN_IETF_PARAMS_XML_NS_NETCONF_BASE_1_0);
}

代码示例来源:origin: org.opendaylight.controller/config-util

public static XmlElement fromDomElementWithExpected(Element element, String expectedName, String expectedNamespace) throws DocumentedException {
  XmlElement xmlElement = XmlElement.fromDomElementWithExpected(element, expectedName);
  xmlElement.checkNamespace(expectedNamespace);
  return xmlElement;
}

代码示例来源:origin: org.opendaylight.netconf/netconf-monitoring

private Element getPlaceholder(final Document innerResult)
    throws DocumentedException {
  final XmlElement rootElement = XmlElement.fromDomElementWithExpected(
      innerResult.getDocumentElement(), XmlMappingConstants.RPC_REPLY_KEY, XmlNetconfConstants.URN_IETF_PARAMS_XML_NS_NETCONF_BASE_1_0);
  return rootElement.getOnlyChildElement(XmlNetconfConstants.DATA_KEY).getDomElement();
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com