javax.xml.soap.SOAPElement.getChildNodes()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(75)

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

SOAPElement.getChildNodes介绍

暂无

代码示例

代码示例来源:origin: com.hynnet/xws-security

public NodeList getChildNodes() {
  return delegateElement.getChildNodes();
}

代码示例来源:origin: com.hynnet/xws-security

public NodeList getChildNodes() {
  return delegateElement.getChildNodes();
}

代码示例来源:origin: com.hynnet/xws-security

public NodeList getChildNodes() {
  return delegateElement.getChildNodes();
}

代码示例来源:origin: com.hynnet/xws-security

public NodeList getChildNodes() {
  return delegateHeader.getChildNodes();
}

代码示例来源:origin: axis/axis

/**
 * The node immediately preceding this node. If there is no such node,
 * this returns <code>null</code>.
 */
public Node getPreviousSibling() {
  SOAPElement parent = getParentElement();
  if (parent == null) {
    return null;
  }
  NodeList nl = parent.getChildNodes();
  int len = nl.getLength();
  int i = 0;
  Node previousSibling = null;
  while (i < len) {
    if (nl.item(i) == this) {
      return previousSibling;
    }
    previousSibling = nl.item(i);
    i++;
  }
  return previousSibling; // should be null.
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * The node immediately preceding this node. If there is no such node,
 * this returns <code>null</code>.
 */
public Node getPreviousSibling() {
  SOAPElement parent = getParentElement();
  if (parent == null) {
    return null;
  }
  NodeList nl = parent.getChildNodes();
  int len = nl.getLength();
  int i = 0;
  Node previousSibling = null;
  while (i < len) {
    if (nl.item(i) == this) {
      return previousSibling;
    }
    previousSibling = nl.item(i);
    i++;
  }
  return previousSibling; // should be null.
}

代码示例来源:origin: org.apache.axis/axis

/**
 * The node immediately preceding this node. If there is no such node,
 * this returns <code>null</code>.
 */
public Node getPreviousSibling() {
  SOAPElement parent = getParentElement();
  if (parent == null) {
    return null;
  }
  NodeList nl = parent.getChildNodes();
  int len = nl.getLength();
  int i = 0;
  Node previousSibling = null;
  while (i < len) {
    if (nl.item(i) == this) {
      return previousSibling;
    }
    previousSibling = nl.item(i);
    i++;
  }
  return previousSibling; // should be null.
}

代码示例来源:origin: org.apache.ws.commons.axiom/saaj-testsuite

@Override
  protected void runTest() throws Throwable {
    SOAPElement parent = newSOAPFactory().createElement(new QName("parent"));
    SOAPElement child1 = parent.addChildElement(new QName("child1"));
    SOAPElement child2 = (SOAPElement)parent.getOwnerDocument().createElementNS(null, "child2");
    child2.setParentElement(parent);
    NodeList children = parent.getChildNodes();
    assertEquals(2, children.getLength());
    assertSame(child1, children.item(0));
    assertSame(child2, children.item(1));
  }
}

代码示例来源:origin: stackoverflow.com

SOAPElement elementToRename = (SOAPElement) nodeToRename;
SOAPElement newElement = parentElement.addChildElement(elementToRename.getElementName().getLocalName(), prefix);
for (int index = 0; index < elementToRename.getChildNodes().getLength(); index++) {
  Node childNode = elementToRename.getChildNodes().item(index);
  cloneToNewNamespace(childNode, newElement, prefix);

相关文章

微信公众号

最新文章

更多