jd.xml.xpath.axis.name
Class PooledUriTest

java.lang.Object
  extended byjd.xml.xpath.axis.NodeTest
      extended byjd.xml.xpath.axis.NodeNameTest
          extended byjd.xml.xpath.axis.name.PooledUriTest

public final class PooledUriTest
extends NodeNameTest

A NodeTest to filter nodes which match the namespace uri of a NodeName of a NamePool.


Field Summary
 
Fields inherited from class jd.xml.xpath.axis.NodeNameTest
ALL
 
Fields inherited from class jd.xml.xpath.axis.NodeTest
EXACT, NO, WILDCARD
 
Constructor Summary
PooledUriTest(NodeName name)
          Create a PooledUriTest for the specified name.
 
Method Summary
 void accept(NodeTestVisitor visitor)
          Accept a NodeTestVisitor.
 boolean accept(XPathNode node, int principalType)
          Test if a node is accepted by this NodeTest.
 double calculatePriority()
          Return -0.25.
 String toString()
          Return a string representation.
 
Methods inherited from class jd.xml.xpath.axis.NodeNameTest
getTest, matchNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PooledUriTest

public PooledUriTest(NodeName name)
Create a PooledUriTest for the specified name.

Method Detail

accept

public boolean accept(XPathNode node,
                      int principalType)
Test if a node is accepted by this NodeTest.

Specified by:
accept in class NodeTest
Parameters:
node - the tested node
principalType - the principal node type as determined by the associated axis

calculatePriority

public double calculatePriority()
Return -0.25.

Specified by:
calculatePriority in class NodeTest

accept

public void accept(NodeTestVisitor visitor)
Accept a NodeTestVisitor.

Specified by:
accept in class NodeTest

toString

public String toString()
Return a string representation.

Specified by:
toString in class NodeTest