Creates an
XPathType
instance with the specified XPath
expression, filter, and namespace map. The map is copied to protect
against subsequent modification.
Parameters:
-
expression - the XPath expression to be evaluated
-
filter - the filter operation ({@link Filter#INTERSECT},
{@link Filter#SUBTRACT}, or {@link Filter#UNION})
-
namespaceMap - the map of namespace prefixes. Each key is a
namespace prefix
String
that maps to a corresponding
namespace URI
String
.
Throws:
-
NullPointerException - if
expression
,
filter
or
namespaceMap
are
null
-
ClassCastException - if any of the map's keys or entries are
not of type
String