public class ReferenceSubTreeData extends Object implements ReferenceNodeSetData
ReferenceNodeSetData type containing a node-set.
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 and Description |
|---|
ReferenceSubTreeData(Node root,
boolean excludeComments) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
excludeComments() |
Node |
getRoot() |
Iterator<Node> |
iterator()
Returns a read-only iterator over the nodes contained in this
NodeSetData in
document order. |
public ReferenceSubTreeData(Node root, boolean excludeComments)
public Iterator<Node> iterator()
ReferenceNodeSetDataNodeSetData in
document order. Attempts to modify the returned iterator
via the remove method throw
UnsupportedOperationException.iterator in interface ReferenceNodeSetDataIterator over the nodes in this
NodeSetData in document orderpublic Node getRoot()
public boolean excludeComments()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.