jd.xml.xpath.axis.name
Class PooledNameTest

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

public final class PooledNameTest
extends NodeNameTest

A NodeTest to filter nodes which match a specific 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
PooledNameTest(NodeName name)
          Create a PooledNameTest.
 
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.0.
 int matchNames()
          Return EXACT.
 String toString()
          Return a string representation.
 
Methods inherited from class jd.xml.xpath.axis.NodeNameTest
getTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PooledNameTest

public PooledNameTest(NodeName name)
Create a PooledNameTest.

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

matchNames

public int matchNames()
Return EXACT.

Overrides:
matchNames in class NodeNameTest

calculatePriority

public double calculatePriority()
Return 0.0.

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