java.lang.Object | |
↳ | org.apache.xerces.util.DOMUtil |
Some useful utility methods. This class was modified in Xerces2 with a view to abstracting as much as possible away from the representation of the underlying parsed structure (i.e., the DOM). This was done so that, if Xerces ever adopts an in-memory representation more efficient than the DOM (such as a DTM), we should easily be able to convert our schema parsing to utilize it.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This class cannot be instantiated.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copies the source tree into the specified place in a destination
tree.
| |||||||||||
Creates a DOMException.
| |||||||||||
Creates an LSException.
| |||||||||||
Returns the concatenated child text of the specified node.
| |||||||||||
Finds and returns the first child node with the given name and
attribute name, value pair.
| |||||||||||
Finds and returns the first child element node.
| |||||||||||
Finds and returns the first child node with the given name.
| |||||||||||
Finds and returns the first child node with the given name.
| |||||||||||
Finds and returns the first child node with the given qualified name.
| |||||||||||
Finds and returns the first child node with the given qualified name.
| |||||||||||
Finds and returns the first visible child element node.
| |||||||||||
Finds and returns the first visible child element node.
| |||||||||||
Finds and returns the last child node with the given name.
| |||||||||||
Finds and returns the last child node with the given name.
| |||||||||||
Finds and returns the last child node with the given name and
attribute name, value pair.
| |||||||||||
Finds and returns the last child element node.
| |||||||||||
Finds and returns the last child node with the given qualified name.
| |||||||||||
Finds and returns the last child node with the given qualified name.
| |||||||||||
Finds and returns the last visible child element node.
| |||||||||||
Finds and returns the last visible child element node.
| |||||||||||
returns local name of this element if not null, otherwise
returns the name of the node
| |||||||||||
Finds and returns the next sibling node with the given name.
| |||||||||||
Finds and returns the next sibling node with the given name and
attribute name, value pair.
| |||||||||||
Finds and returns the next sibling node with the given name.
| |||||||||||
Finds and returns the next sibling element node.
| |||||||||||
Finds and returns the next sibling node with the given qualified name.
| |||||||||||
Finds and returns the next sibling node with the given qualified name.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This class cannot be instantiated.
Copies the source tree into the specified place in a destination tree. The source node and its children are appended as children of the destination node.
Note: This is an iterative implementation.
DOMException |
---|
Creates a DOMException. On J2SE 1.4 and above the cause for the exception will be set.
Creates an LSException. On J2SE 1.4 and above the cause for the exception will be set.
Returns the concatenated child text of the specified node.
This method only looks at the immediate children of type
Node.TEXT_NODE
or the children of any child
node that is of type Node.CDATA_SECTION_NODE
for the concatenation.
node | The node to look at. |
---|
Finds and returns the first child node with the given name and attribute name, value pair.
Finds and returns the first child element node.
Finds and returns the first child node with the given name.
Finds and returns the first child node with the given name.
Finds and returns the first child node with the given qualified name.
Finds and returns the first child node with the given qualified name.
Finds and returns the first visible child element node.
Finds and returns the first visible child element node.
Finds and returns the last child node with the given name.
Finds and returns the last child node with the given name.
Finds and returns the last child node with the given name and attribute name, value pair.
Finds and returns the last child element node. Overload previous method for non-Xerces node impl.
Finds and returns the last child node with the given qualified name.
Finds and returns the last child node with the given qualified name.
Finds and returns the last visible child element node. Overload previous method for non-Xerces node impl
Finds and returns the last visible child element node.
returns local name of this element if not null, otherwise returns the name of the node
Finds and returns the next sibling node with the given name.
Finds and returns the next sibling node with the given name and attribute name, value pair. Since only elements have attributes, the node returned will be of type Node.ELEMENT_NODE.
Finds and returns the next sibling node with the given name.
Finds and returns the next sibling element node.
Finds and returns the next sibling node with the given qualified name.
Finds and returns the next sibling node with the given qualified name.