本文整理了Java中javax.xml.soap.SOAPElement.getChildNodes()
方法的一些代码示例,展示了SOAPElement.getChildNodes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SOAPElement.getChildNodes()
方法的具体详情如下:
包路径:javax.xml.soap.SOAPElement
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!