org.apache.xalan.stree
Class StreeDOMHelper
java.lang.Object
|
+--org.apache.xpath.DOMHelper
|
+--org.apache.xpath.DOM2Helper
|
+--org.apache.xalan.stree.StreeDOMHelper
- public class StreeDOMHelper
- extends DOM2Helper
**For internal use only**
Provides XSLTProcessor an interface to the Xerces XML parser. This
liaison should be used if Xerces DOM nodes are being process as
the source tree or as the result tree.
|
Method Summary |
short |
getLevel(Node node1)
**For internal use only**
Get the depth level of this node in the tree. |
java.lang.String |
getUniqueID(Node node)
Get the specified node's position in the document |
boolean |
isNamespaceNode(Node n)
Tell if the given node is a namespace decl node. |
boolean |
isNodeAfter(Node node1,
Node node2)
Overload DOM2Helper#isNodeAfter, making the assumption that both nodes
implement DOMOrder, and handling things if this is not the case by
catching a cast exception. |
| Methods inherited from class org.apache.xpath.DOMHelper |
createDocument,
getDOMFactory,
getExpandedAttributeName,
getExpandedElementName,
getNamespaceForPrefix,
getNodeData,
getNodeData,
getRoot,
getRootNode,
getUnparsedEntityURI,
isIgnorableWhitespace,
setDOMFactory,
shouldStripSourceNode |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
StreeDOMHelper
public StreeDOMHelper()
getUniqueID
public java.lang.String getUniqueID(Node node)
- Get the specified node's position in the document
- Parameters:
node - A node in the document tree- Returns:
- The position of the node in the document
- Overrides:
- getUniqueID in class DOMHelper
getLevel
public short getLevel(Node node1)
- **For internal use only**
Get the depth level of this node in the tree.
- Parameters:
node1 - A node in the document tree- Returns:
- The depth level of this node in the tree
- Overrides:
- getLevel in class DOMHelper
isNamespaceNode
public boolean isNamespaceNode(Node n)
- Tell if the given node is a namespace decl node.
- Parameters:
n - A node in the document tree- Returns:
- true if the node is a namespace decl node
- Overrides:
- isNamespaceNode in class DOMHelper
isNodeAfter
public boolean isNodeAfter(Node node1,
Node node2)
- Overload DOM2Helper#isNodeAfter, making the assumption that both nodes
implement DOMOrder, and handling things if this is not the case by
catching a cast exception.
- Parameters:
node1 - DOM Node to perform position comparison on.node2 - DOM Node to perform position comparison on .- Returns:
- false if node2 comes before node1, otherwise return true.
You can think of this as
(node1.documentOrderPosition <= node2.documentOrderPosition). - Overrides:
- isNodeAfter in class DOM2Helper
Copyright © 2000 Apache XML Project. All Rights Reserved.