public class FromNamespace extends AbstractPattern
_child, _parent, log, XMLNS
Constructor and Description |
---|
FromNamespace(AbstractPattern parent) |
Modifier and Type | Method and Description |
---|---|
AbstractPattern |
copyAxis()
Returns the node itself for the axis.
|
AbstractPattern |
copyPosition()
Returns null since the axis isn't part of the position pattern.
|
int |
count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Counts the nodes within the axis matching the pattern.
|
NodeIterator |
createNodeIterator(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates a new node iterator.
|
boolean |
isStrictlyAscending()
Returns true if the pattern is strictly ascending.
|
boolean |
isUnique()
Returns true if the pattern's selector returns unique nodes.
|
boolean |
match(org.w3c.dom.Node node,
ExprEnvironment env)
matches if the node is a namespace node.
|
int |
position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Calculates the position of the node in its context.
|
java.lang.String |
toString() |
findAny, firstNode, getNodeName, getParent, getPrefix, getPriority, isAscending, lastNode, nextNode, select, selectUnique, toPatternString
public FromNamespace(AbstractPattern parent)
public boolean match(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
match
in class AbstractPattern
node
- the node to testenv
- the variable environment.XPathException
public NodeIterator createNodeIterator(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
node
- the starting nodeenv
- the variable environmentmatch
- the axis match patternXPathException
public java.lang.String toString()
toString
in class java.lang.Object
public int position(org.w3c.dom.Node node, Env env, AbstractPattern pattern) throws XPathException
position
in class AbstractPattern
node
- the current nodeenv
- the variable environmentpattern
- the position patternXPathException
public int count(org.w3c.dom.Node node, Env env, AbstractPattern pattern) throws XPathException
count
in class AbstractPattern
node
- the current nodeenv
- the variable environmentpattern
- the position patternXPathException
public AbstractPattern copyAxis()
copyAxis
in class AbstractPattern
public AbstractPattern copyPosition()
copyPosition
in class AbstractPattern
public boolean isStrictlyAscending()
isStrictlyAscending
in class AbstractPattern
public boolean isUnique()
isUnique
in class AbstractPattern