Package org.xmlunit.diff
Class ChildNodeXPathContextProvider
java.lang.Object
org.xmlunit.diff.ChildNodeXPathContextProvider
- All Implemented Interfaces:
Mapper<Node,
XPathContext>
Maps
Node
to XPathContext
by assuming all nodes
passed in are child nodes of the same parent node who's
XPathContext is provided as argument to the constructor.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChildNodeXPathContextProvider
(XPathContext parentContext, Iterable<Node> children) Creates an instance of ChildNodeXPathContextProvider. -
Method Summary
-
Field Details
-
xpathContext
-
childIndex
-
-
Constructor Details
-
ChildNodeXPathContextProvider
ChildNodeXPathContextProvider(XPathContext parentContext, Iterable<Node> children) Creates an instance of ChildNodeXPathContextProvider.- Parameters:
parentContext
- context of the parent of all Nodes ever expected to be passed in as arguments toapply(org.w3c.dom.Node)
. This XPathContext must be "positioned at" the parent element and already know about all its children.children
- all child nodes of the parent in the same order they are known to the XPathContext.
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceMapper<Node,
XPathContext>
-