Class ReferenceSubTreeData
- java.lang.Object
-
- org.apache.xml.security.signature.reference.ReferenceSubTreeData
-
- All Implemented Interfaces:
ReferenceData
,ReferenceNodeSetData
public class ReferenceSubTreeData extends java.lang.Object implements ReferenceNodeSetData
A representation of aReferenceNodeSetData
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ReferenceSubTreeData.DelayedNodeIterator
This is an Iterator that contains a backing node-set that is not populated until the caller first attempts to advance the iterator.
-
Field Summary
Fields Modifier and Type Field Description private boolean
excludeComments
private org.w3c.dom.Node
root
-
Constructor Summary
Constructors Constructor Description ReferenceSubTreeData(org.w3c.dom.Node root, boolean excludeComments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
excludeComments()
org.w3c.dom.Node
getRoot()
java.util.Iterator<org.w3c.dom.Node>
iterator()
Returns a read-only iterator over the nodes contained in thisNodeSetData
in document order.
-
-
-
Method Detail
-
iterator
public java.util.Iterator<org.w3c.dom.Node> iterator()
Description copied from interface:ReferenceNodeSetData
Returns a read-only iterator over the nodes contained in thisNodeSetData
in document order. Attempts to modify the returned iterator via theremove
method throwUnsupportedOperationException
.- Specified by:
iterator
in interfaceReferenceNodeSetData
- Returns:
- an
Iterator
over the nodes in thisNodeSetData
in document order
-
getRoot
public org.w3c.dom.Node getRoot()
-
excludeComments
public boolean excludeComments()
-
-