soappartimpl.java
来自「开源的axis2框架的源码。用于开发WEBSERVER」· Java 代码 · 共 1,226 行 · 第 1/5 页
JAVA
1,226 行
* @return The matching element.
* @since DOM Level 2
*/
public Element getElementById(String elementId) {
return document.getElementById(elementId);
}
public String getInputEncoding() {
//return ((DeferredDocumentImpl)(((DOMSource)this.source).getNode())).getInputEncoding();
return this.envelope.getEncodingStyle();
}
public String getXmlEncoding() {
return document.getXmlEncoding();
}
public boolean getXmlStandalone() {
return document.getXmlStandalone();
}
public void setXmlStandalone(boolean xmlStandalone) throws DOMException {
document.setXmlStandalone(xmlStandalone);
}
public String getXmlVersion() {
return document.getXmlVersion();
}
public void setXmlVersion(String xmlVersion) throws DOMException {
document.setXmlVersion(xmlVersion);
}
public boolean getStrictErrorChecking() {
return document.getStrictErrorChecking();
}
public void setStrictErrorChecking(boolean strictErrorChecking) {
document.setStrictErrorChecking(strictErrorChecking);
}
public String getDocumentURI() {
return document.getDocumentURI();
}
public void setDocumentURI(String documentURI) {
document.setDocumentURI(documentURI);
}
public Node adoptNode(Node source) throws DOMException {
return document.adoptNode(source);
}
public DOMConfiguration getDomConfig() {
return document.getDomConfig();
}
public void normalizeDocument() {
document.normalizeDocument();
}
public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException {
return document.renameNode(n, namespaceURI, qualifiedName);
}
/** The name of this node, depending on its type; see the table above. */
public String getNodeName() {
return document.getNodeName();
}
/**
* The value of this node, depending on its type; see the table above. When it is defined to be
* <code>null</code>, setting it has no effect.
*
* @throws DOMException NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
* @throws DOMException DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit
* in a <code>DOMString</code> variable on the implementation platform.
*/
public String getNodeValue() throws DOMException {
return document.getNodeValue();
}
/**
* The value of this node, depending on its type; see the table above. When it is defined to be
* <code>null</code>, setting it has no effect.
*
* @throws DOMException NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
* @throws DOMException DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit
* in a <code>DOMString</code> variable on the implementation platform.
*/
public void setNodeValue(String arg0) throws DOMException {
document.setNodeValue(arg0);
}
/** A code representing the type of the underlying object, as defined above. */
public short getNodeType() {
return document.getNodeType();
}
/**
* The parent of this node. All nodes, except <code>Attr</code>, <code>Document</code>,
* <code>DocumentFragment</code>, <code>Entity</code>, and <code>Notation</code> may have a
* parent. However, if a node has just been created and not yet added to the tree, or if it has
* been removed from the tree, this is <code>null</code>.
*/
public Node getParentNode() {
return document.getParentNode();
}
/**
* A <code>NodeList</code> that contains all children of this node. If there are no children,
* this is a <code>NodeList</code> containing no nodes.
*/
public NodeList getChildNodes() {
return document.getChildNodes();
}
/** The first child of this node. If there is no such node, this returns <code>null</code>. */
public Node getFirstChild() {
return document.getFirstChild();
}
/** The last child of this node. If there is no such node, this returns <code>null</code>. */
public Node getLastChild() {
return document.getLastChild();
}
/**
* The node immediately preceding this node. If there is no such node, this returns
* <code>null</code>.
*/
public Node getPreviousSibling() {
return document.getPreviousSibling();
}
/**
* The node immediately following this node. If there is no such node, this returns
* <code>null</code>.
*/
public Node getNextSibling() {
return document.getNextSibling();
}
/**
* A <code>NamedNodeMap</code> containing the attributes of this node (if it is an
* <code>Element</code>) or <code>null</code> otherwise.
*/
public NamedNodeMap getAttributes() {
return document.getAttributes();
}
/**
* The <code>Document</code> object associated with this node. This is also the
* <code>Document</code> object used to create new nodes. When this node is a
* <code>Document</code> or a <code>DocumentType</code> which is not used with any
* <code>Document</code> yet, this is <code>null</code>.
*/
public Document getOwnerDocument() {
return document.getOwnerDocument();
}
/**
* Inserts the node <code>newChild</code> before the existing child node <code>refChild</code>.
* If <code>refChild</code> is <code>null</code>, insert <code>newChild</code> at the end of the
* list of children. <br>If <code>newChild</code> is a <code>DocumentFragment</code> object, all
* of its children are inserted, in the same order, before <code>refChild</code>. If the
* <code>newChild</code> is already in the tree, it is first removed.
*
* @param newChild The node to insert.
* @param refChild The reference node, i.e., the node before which the new node must be
* inserted.
* @return The node being inserted.
* @throws DOMException HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
* allow children of the type of the <code>newChild</code> node, or if the
* node to insert is one of this node's ancestors or this node itself.
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created from
* a different document than the one that created this node.
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if
* the parent of the node being inserted is readonly. <br>NOT_FOUND_ERR:
* Raised if <code>refChild</code> is not a child of this node.
*/
public Node insertBefore(Node newChild, Node refChild) throws DOMException {
return document.insertBefore(newChild, refChild);
}
/**
* Replaces the child node <code>oldChild</code> with <code>newChild</code> in the list of
* children, and returns the <code>oldChild</code> node. <br>If <code>newChild</code> is a
* <code>DocumentFragment</code> object, <code>oldChild</code> is replaced by all of the
* <code>DocumentFragment</code> children, which are inserted in the same order. If the
* <code>newChild</code> is already in the tree, it is first removed.
*
* @param newChild The new node to put in the child list.
* @param oldChild The node being replaced in the list.
* @return The node replaced.
* @throws DOMException HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
* allow children of the type of the <code>newChild</code> node, or if the
* node to put in is one of this node's ancestors or this node itself.
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created from
* a different document than the one that created this node.
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the parent of
* the new node is readonly. <br>NOT_FOUND_ERR: Raised if
* <code>oldChild</code> is not a child of this node.
*/
public Node replaceChild(Node newChild, Node oldChild) throws DOMException {
return document.replaceChild(newChild, oldChild);
}
/**
* Removes the child node indicated by <code>oldChild</code> from the list of children, and
* returns it.
*
* @param oldChild The node being removed.
* @return The node removed.
* @throws DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
* <br>NOT_FOUND_ERR: Raised if <code>oldChild</code> is not a child of
* this node.
*/
public Node removeChild(Node oldChild) throws DOMException {
return document.removeChild(oldChild);
}
/**
* Adds the node <code>newChild</code> to the end of the list of children of this node. If the
* <code>newChild</code> is already in the tree, it is first removed.
*
* @param newChild The node to add.If it is a <code>DocumentFragment</code> object, the entire
* contents of the document fragment are moved into the child list of this node
* @return The node added.
* @throws DOMException HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not
* allow children of the type of the <code>newChild</code> node, or if the
* node to append is one of this node's ancestors or this node itself.
* <br>WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created from
* a different document than the one that created this node.
* <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if
* the previous parent of the node being inserted is readonly.
*/
public Node appendChild(Node newChild) throws DOMException {
return document.appendChild(newChild);
}
/**
* Returns whether this node has any children.
*
* @return <code>true</code> if this node has any children, <code>false</code> otherwise.
*/
public boolean hasChildNodes() {
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?