org.ucl.xpath.types
Class ElementType

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

public class ElementType
extends NodeType

A representation of the ElementType datatype


Constructor Summary
ElementType()
          Initialises to a null element
ElementType(org.w3c.dom.Element v, int doc_order)
          Initialises according to the supplied parameters
 
Method Summary
 ResultSequence nilled()
           
 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 element being stored
static java.lang.String textnode_strings(org.w3c.dom.Node node)
          Recursively concatenate TextNode strings
 ResultSequence typed_value()
          Creates a new ResultSequence consisting of the element stored
 org.w3c.dom.Element value()
          Retrieves the actual element value being represented
 
Methods inherited from class org.ucl.xpath.types.NodeType
after, after, before, before, document_order, dom_to_xpath, eliminate_dups, 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

ElementType

public ElementType()
Initialises to a null element


ElementType

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

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

value

public org.w3c.dom.Element value()
Retrieves the actual element value being represented

Returns:
Actual element value being represented

string_type

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

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

string_value

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

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

typed_value

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

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

textnode_strings

public static java.lang.String textnode_strings(org.w3c.dom.Node node)
Recursively concatenate TextNode strings

Parameters:
node - Node to recurse
Returns:
String representation of the node supplied

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

nilled

public ResultSequence nilled()
Overrides:
nilled in class NodeType