public class NSNamePattern extends AbstractPattern
_child, _parent, log, XMLNS
Constructor and Description |
---|
NSNamePattern(AbstractPattern parent,
java.lang.String namespace,
java.lang.String local,
int nodeType)
Creates the namespace pattern.
|
Modifier and Type | Method and Description |
---|---|
AbstractPattern |
copyPosition()
Copies the position (non-axis) portion of the pattern.
|
boolean |
equals(java.lang.Object b)
Returns true if the two patterns are equal.
|
double |
getPriority()
Nodes have a higher default priority.
|
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
Matches if the namespace matches and the local name matches.
|
java.lang.String |
toString() |
copyAxis, count, createNodeIterator, findAny, firstNode, getNodeName, getParent, getPrefix, isAscending, isStrictlyAscending, isUnique, lastNode, nextNode, position, select, selectUnique, toPatternString
public NSNamePattern(AbstractPattern parent, java.lang.String namespace, java.lang.String local, int nodeType)
parent
- the parent pattern.namespace
- the node's namespace URL.local
- the node's local name.nodeType
- the node type to match.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 AbstractPattern copyPosition()
copyPosition
in class AbstractPattern
public boolean equals(java.lang.Object b)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object