org.ucl.xpath.types
Class NodeType

java.lang.Object
  extended byorg.ucl.xpath.types.AnyType
      extended byorg.ucl.xpath.types.NodeType
Direct Known Subclasses:
AttrType, CommentType, DocType, ElementType, PIType, TextType

public abstract class NodeType
extends AnyType

A representation of a Node datatype


Constructor Summary
NodeType(org.w3c.dom.Node node, int document_order)
          Initialises according to the supplied parameters
 
Method Summary
 boolean after(NodeType two)
           
static boolean after(NodeType a, NodeType b)
           
 boolean before(NodeType two)
           
static boolean before(NodeType a, NodeType b)
           
 int document_order()
          Retrieves the document order as an integer
static NodeType dom_to_xpath(org.w3c.dom.Node node, int doc_pos)
           
static ResultSequence eliminate_dups(ResultSequence rs)
           
 ResultSequence nilled()
           
abstract  QName node_name()
          Retrieves the name of the node
 org.w3c.dom.Node node_value()
          Retrieves the actual node being represented
static boolean same(NodeType a, NodeType b)
           
static ResultSequence sort_document_order(ResultSequence rs)
           
abstract  ResultSequence typed_value()
          Retrieves the actual node being represented
 
Methods inherited from class org.ucl.xpath.types.AnyType
string_type, string_value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeType

public NodeType(org.w3c.dom.Node node,
                int document_order)
Initialises according to the supplied parameters

Parameters:
node - The Node being represented
document_order - The document order
Method Detail

node_value

public org.w3c.dom.Node node_value()
Retrieves the actual node being represented

Returns:
Actual node being represented

document_order

public int document_order()
Retrieves the document order as an integer

Returns:
Document order as an integer

typed_value

public abstract ResultSequence typed_value()
Retrieves the actual node being represented

Returns:
Actual node being represented

node_name

public abstract QName node_name()
Retrieves the name of the node

Returns:
QName representation of the name of the node

nilled

public ResultSequence nilled()

dom_to_xpath

public static NodeType dom_to_xpath(org.w3c.dom.Node node,
                                    int doc_pos)

eliminate_dups

public static ResultSequence eliminate_dups(ResultSequence rs)

sort_document_order

public static ResultSequence sort_document_order(ResultSequence rs)

same

public static boolean same(NodeType a,
                           NodeType b)

before

public boolean before(NodeType two)

before

public static boolean before(NodeType a,
                             NodeType b)

after

public boolean after(NodeType two)

after

public static boolean after(NodeType a,
                            NodeType b)