public class NamespacePattern extends AbstractPattern
_child, _parent, log, XMLNS
Constructor and Description |
---|
NamespacePattern(AbstractPattern parent,
java.lang.String prefix,
int nodeType) |
Modifier and Type | Method and Description |
---|---|
double |
getPriority()
The node-type priority is less than nodes.
|
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if the namespace matches and the local name matches.
|
java.lang.String |
toString() |
copyAxis, copyPosition, count, createNodeIterator, findAny, firstNode, getNodeName, getParent, getPrefix, isAscending, isStrictlyAscending, isUnique, lastNode, nextNode, position, select, selectUnique, toPatternString
public NamespacePattern(AbstractPattern parent, java.lang.String prefix, int nodeType)
public double getPriority()
getPriority
in class AbstractPattern
public boolean match(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
match
in class AbstractPattern
node
- the current nodeenv
- the variable environmentXPathException
public java.lang.String toString()
toString
in class java.lang.Object