Class TransformXPath.XPathNodeFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String str  
      (package private) XPathAPI xPathAPI  
      (package private) org.w3c.dom.Element xpathElement  
      (package private) org.w3c.dom.Node xpathnode  
    • Constructor Summary

      Constructors 
      Constructor Description
      XPathNodeFilter​(org.w3c.dom.Element xpathElement, org.w3c.dom.Node xpathnode, java.lang.String str, XPathAPI xPathAPI)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int isNodeInclude​(org.w3c.dom.Node currentNode)
      Tells if a node must be output in c14n.
      int isNodeIncludeDO​(org.w3c.dom.Node n, int level)
      Tells if a node must be output in a c14n.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • xpathnode

        org.w3c.dom.Node xpathnode
      • xpathElement

        org.w3c.dom.Element xpathElement
      • str

        java.lang.String str
    • Constructor Detail

      • XPathNodeFilter

        XPathNodeFilter​(org.w3c.dom.Element xpathElement,
                        org.w3c.dom.Node xpathnode,
                        java.lang.String str,
                        XPathAPI xPathAPI)
    • Method Detail

      • isNodeInclude

        public int isNodeInclude​(org.w3c.dom.Node currentNode)
        Description copied from interface: NodeFilter
        Tells if a node must be output in c14n.
        Specified by:
        isNodeInclude in interface NodeFilter
        Returns:
        1 if the node should be output. 0 if node must not be output, -1 if the node and all it's child must not be output.
        See Also:
        NodeFilter.isNodeInclude(org.w3c.dom.Node)
      • isNodeIncludeDO

        public int isNodeIncludeDO​(org.w3c.dom.Node n,
                                   int level)
        Description copied from interface: NodeFilter
        Tells if a node must be output in a c14n. The caller must assured that this method is always call in document order. The implementations can use this restriction to optimize the transformation.
        Specified by:
        isNodeIncludeDO in interface NodeFilter
        level - the relative level in the tree
        Returns:
        1 if the node should be output. 0 if node must not be output, -1 if the node and all it's child must not be output.