BEA Systems, Inc.

WebLogic Server 6.1 API Reference

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.

This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.


Fields inherited from class weblogic.apache.xpath.DOMHelper
m_candidateNoAncestorXMLNS, m_DOMFactory, m_NSInfoNullNoAncestorXMLNS, m_NSInfoNullWithoutXMLNS, m_NSInfoNullWithXMLNS, m_NSInfoUnProcNoAncestorXMLNS, m_NSInfoUnProcWithoutXMLNS, m_NSInfoUnProcWithXMLNS
 
Constructor Summary
StreeDOMHelper()
           
 
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.DOM2Helper
checkNode, getDocument, getElementByID, getLocalNameOfNode, getNamespaceOfNode, getParentOfNode, parse, setDocument, supportsSAX
 
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
 

Constructor Detail

StreeDOMHelper

public StreeDOMHelper()
Method Detail

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

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.