org.ucl.xpath
Class AttributeAxis

java.lang.Object
  extended byorg.ucl.xpath.ForwardAxis
      extended byorg.ucl.xpath.AttributeAxis
All Implemented Interfaces:
Axis

public class AttributeAxis
extends ForwardAxis

The attribute axis contains the attributes of the context node. The axis will be empty unless the context node is an element.


Constructor Summary
AttributeAxis()
           
 
Method Summary
 ResultSequence iterate(NodeType node, DynamicContext dc)
          Retrieves the context node's attributes.
 NodeType principal_node_kind()
          Retrieves the node's principle node kind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeAxis

public AttributeAxis()
Method Detail

iterate

public ResultSequence iterate(NodeType node,
                              DynamicContext dc)
Retrieves the context node's attributes.

Parameters:
node - is the type of node.
dc - is the dynamic context.
Returns:
The attibutes of the context node.

principal_node_kind

public NodeType principal_node_kind()
Retrieves the node's principle node kind.

Specified by:
principal_node_kind in interface Axis
Overrides:
principal_node_kind in class ForwardAxis
Returns:
The type of node.