org.ucl.xpath.types
Class DocType

java.lang.Object
  extended byorg.ucl.xpath.types.AnyType
      extended byorg.ucl.xpath.types.NodeType
          extended byorg.ucl.xpath.types.DocType

public class DocType
extends NodeType

A representation of the DocumentType datatype


Constructor Summary
DocType(org.w3c.dom.Document v, int doc_order)
          Initialises according to the supplied parameters
 
Method Summary
 QName node_name()
          Retrieves the name of the node
 java.lang.String string_type()
          Retrieves the datatype's full pathname
 java.lang.String string_value()
          Retrieves a String representation of the document being stored
 ResultSequence typed_value()
          Creates a new ResultSequence consisting of the document being stored
 org.w3c.dom.Document value()
          Retrieves the actual document being represented
 
Methods inherited from class org.ucl.xpath.types.NodeType
after, after, before, before, document_order, dom_to_xpath, eliminate_dups, nilled, node_value, same, sort_document_order
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocType

public DocType(org.w3c.dom.Document v,
               int doc_order)
Initialises according to the supplied parameters

Parameters:
v - The document being represented
doc_order - The document order
Method Detail

value

public org.w3c.dom.Document value()
Retrieves the actual document being represented

Returns:
Actual document being represented

string_type

public java.lang.String string_type()
Retrieves the datatype's full pathname

Specified by:
string_type in class AnyType
Returns:
"document" which is the datatype's full pathname

string_value

public java.lang.String string_value()
Retrieves a String representation of the document being stored

Specified by:
string_value in class AnyType
Returns:
String representation of the document being stored

typed_value

public ResultSequence typed_value()
Creates a new ResultSequence consisting of the document being stored

Specified by:
typed_value in class NodeType
Returns:
New ResultSequence consisting of the document being stored

node_name

public QName node_name()
Retrieves the name of the node

Specified by:
node_name in class NodeType
Returns:
QName representation of the name of the node