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

x33g5p2x  于2022-02-03 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(124)

本文整理了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();
}

相关文章