org.ucl.xpath.types
Class AttrType

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

public class AttrType
extends NodeType

A representation of the AttributeType datatype


Constructor Summary
AttrType()
          Initialises to null
AttrType(org.w3c.dom.Attr 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 attribute being stored
 ResultSequence typed_value()
          Creates a new ResultSequence consisting of the attribute being stored
 
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

AttrType

public AttrType()
Initialises to null


AttrType

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

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

string_type

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

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

string_value

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

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

typed_value

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

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

node_name

public QName node_name()
Retrieves the name of the node

Specified by:
node_name in class NodeType
Returns:
Name of the node