com.caucho.xpath.pattern
Class SelectedAttribute

java.lang.Object
  extended by com.caucho.xpath.pattern.SelectedNode
      extended by com.caucho.xpath.pattern.SelectedAttribute

public class SelectedAttribute
extends SelectedNode

Represents a selected node.


Field Summary
 
Fields inherited from class com.caucho.xpath.pattern.SelectedNode
_depth, _level, _node
 
Constructor Summary
SelectedAttribute(org.w3c.dom.Node node)
          Creates new selected node, calculating the index.
 
Method Summary
 int compareTo(SelectedNode b)
          Returns the node's index
 
Methods inherited from class com.caucho.xpath.pattern.SelectedNode
getNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectedAttribute

public SelectedAttribute(org.w3c.dom.Node node)
Creates new selected node, calculating the index.

Parameters:
node - the underlying DOM node.
Method Detail

compareTo

public int compareTo(SelectedNode b)
Returns the node's index

Overrides:
compareTo in class SelectedNode