Class DOMSubTreeData

java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.DOMSubTreeData
All Implemented Interfaces:
Data, NodeSetData

public class DOMSubTreeData extends Object implements NodeSetData
This is a subtype of NodeSetData that represents a dereferenced same-document URI as the root of a subdocument. The main reason is for efficiency and performance, as some transforms can operate directly on the subdocument and there is no need to convert it first to an XPath node-set.
  • Constructor Details

    • DOMSubTreeData

      public DOMSubTreeData(Node root, boolean excludeComments)
  • Method Details

    • iterator

      public Iterator<Node> iterator()
      Specified by:
      iterator in interface NodeSetData
    • getRoot

      public Node getRoot()
    • excludeComments

      public boolean excludeComments()