jd.xml.xpath.axis.name
Class NcNameTest

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

public final class NcNameTest
extends NodeNameTest

A NodeTest to filter nodes which match a unqualified NCName.


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
NcNameTest(String localName)
          Create a NcNameTest.
 
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 the name.
 
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

NcNameTest

public NcNameTest(String localName)
Create a NcNameTest.

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 the name.

Specified by:
toString in class NodeTest