com.caucho.xpath.pattern
Class NamespacePattern

java.lang.Object
  extended by com.caucho.xpath.pattern.AbstractPattern
      extended by com.caucho.xpath.pattern.NamespacePattern

public class NamespacePattern
extends AbstractPattern


Field Summary
 
Fields inherited from class com.caucho.xpath.pattern.AbstractPattern
_child, _parent, log, XMLNS
 
Constructor Summary
NamespacePattern(AbstractPattern parent, java.lang.String prefix, int nodeType)
           
 
Method Summary
 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()
           
 
Methods inherited from class com.caucho.xpath.pattern.AbstractPattern
copyAxis, copyPosition, count, createNodeIterator, findAny, firstNode, getNodeName, getParent, getPrefix, isAscending, isStrictlyAscending, isUnique, lastNode, nextNode, position, select, selectUnique, toPatternString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespacePattern

public NamespacePattern(AbstractPattern parent,
                        java.lang.String prefix,
                        int nodeType)
Method Detail

getPriority

public double getPriority()
The node-type priority is less than nodes.

Overrides:
getPriority in class AbstractPattern

match

public boolean match(org.w3c.dom.Node node,
                     ExprEnvironment env)
              throws XPathException
Matches if the namespace matches and the local name matches.

Specified by:
match in class AbstractPattern
Parameters:
node - the current node
env - the variable environment
Returns:
true if the node matches
Throws:
XPathException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object