jd.xml.xpath.axis
Class AttributeAxis

java.lang.Object
  extended byjd.xml.xpath.axis.Axis
      extended byjd.xml.xpath.axis.AttributeAxis

public class AttributeAxis
extends Axis

AttributeAxis represents the attribute axis.


Field Summary
static Axis INSTANCE
          The axis instance.
 
Constructor Summary
protected AttributeAxis()
           
 
Method Summary
 XPathNode getFirstNode(XPathNode contextNode, NodeTest nodeTest)
          Get the first node of the axis, which matches the nodeTest or null if no match is found.
 int getMaxResultSize(NodeTest nodeTest)
          Return 1 if the nodetest is an exact nametest, 0 else.
 ModelWalker getModelWalker()
          Return a ModelWalker for the axis.
 void getNodes(XPathNode contextNode, NodeTest nodeTest, XMutableNodeSet result)
          Get the nodes of the axis, filtered by the NodeTest.
 int getPrincipalNodeType()
          Return ATTRIBUTE.
 
Methods inherited from class jd.xml.xpath.axis.Axis
getMinResultSize, getName, getProximityModelWalker, isDistinctAxis, isForwardAxis, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final Axis INSTANCE
The axis instance.

Constructor Detail

AttributeAxis

protected AttributeAxis()
Method Detail

getMaxResultSize

public int getMaxResultSize(NodeTest nodeTest)
Return 1 if the nodetest is an exact nametest, 0 else.

Overrides:
getMaxResultSize in class Axis

getPrincipalNodeType

public int getPrincipalNodeType()
Return ATTRIBUTE.

Overrides:
getPrincipalNodeType in class Axis

getNodes

public void getNodes(XPathNode contextNode,
                     NodeTest nodeTest,
                     XMutableNodeSet result)
Get the nodes of the axis, filtered by the NodeTest.

Overrides:
getNodes in class Axis
Parameters:
contextNode - the context node
nodeTest - the node test
result - a nodeset for the matching nodes.

getFirstNode

public XPathNode getFirstNode(XPathNode contextNode,
                              NodeTest nodeTest)
Get the first node of the axis, which matches the nodeTest or null if no match is found.

Overrides:
getFirstNode in class Axis

getModelWalker

public ModelWalker getModelWalker()
Return a ModelWalker for the axis.

Specified by:
getModelWalker in class Axis