weblogic.apache.xalan.stree
Class StreeDOMHelper
java.lang.Object
|
+--weblogic.apache.xpath.DOMHelper
|
+--weblogic.apache.xpath.DOM2Helper
|
+--weblogic.apache.xalan.stree.StreeDOMHelper
- public class StreeDOMHelper
- extends DOM2Helper
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.
- Author:
- Copyright © 2001 BEA Systems, Inc. All Rights Reserved.
Method Summary
|
short |
getLevel(org.w3c.dom.Node node1)
Get the depth level of this node in the tree. |
java.lang.String |
getUniqueID(org.w3c.dom.Node node)
Get the specified node's position in the document |
boolean |
isNamespaceNode(org.w3c.dom.Node n)
Tell if the given node is a namespace decl node. |
boolean |
isNodeAfter(org.w3c.dom.Node node1,
org.w3c.dom.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 weblogic.apache.xpath.DOMHelper |
createDocument,
getDOMFactory,
getExpandedAttributeName,
getExpandedElementName,
getNamespaceForPrefix,
getNodeData,
getNodeData,
getRoot,
getRootNode,
getUnparsedEntityURI,
isIgnorableWhitespace,
setDOMFactory,
shouldStripSourceNode |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
StreeDOMHelper
public StreeDOMHelper()
getUniqueID
public java.lang.String getUniqueID(org.w3c.dom.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(org.w3c.dom.Node node1)
-
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(org.w3c.dom.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(org.w3c.dom.Node node1,
org.w3c.dom.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
WebLogic classes and methods that do not appear in this reference are not public and are not supported.