org.apache.xalan.lib.sql
Class Column

java.lang.Object
  |
  +--org.apache.xml.utils.UnImplNode
        |
        +--org.apache.xalan.lib.sql.StreamableNode
              |
              +--org.apache.xalan.lib.sql.Column

public class Column
extends StreamableNode

Represents a col node from a row node.


Constructor Summary
Column(XStatement statement, Row parent, int columnIndex, java.sql.ResultSetMetaData metadata)
          Constructor Column
 
Method Summary
 NamedNodeMap getAttributes()
          Return the metadata for this column.
 Node getFirstChild()
          Return the col text node (the column value).
 Node getNextSibling()
          Return the next col element for the current row.
 java.lang.String getNodeName()
          Return "col".
 Document getOwnerDocument()
          The parent of col is #Document (represented by XStatement).
 Node getParentNode()
          The parent node of col is a row.
 boolean hasChildNodes()
          Tell if there are any children of col, which is always true.
 
Methods inherited from class org.apache.xalan.lib.sql.StreamableNode
getLength, getLocalName, getNamedItem, getNamedItemNS, getNamespaceURI, getNodeTest, getNodeType, getPrefix, getUid, getXStatement, isSupported, item, removeNamedItem, removeNamedItemNS, setNamedItem, setNamedItemNS, setNodeTest
 
Methods inherited from class org.apache.xml.utils.UnImplNode
appendChild, appendData, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, error, error, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildNodes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, getLastChild, getNodeValue, getOwnerElement, getPreviousSibling, getSpecified, getTagName, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertBefore, insertData, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceChild, replaceData, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setNodeValue, setPrefix, setValue, splitText, substringData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column(XStatement statement,
              Row parent,
              int columnIndex,
              java.sql.ResultSetMetaData metadata)
Constructor Column
Parameters:
statement - Current Document
parent - Parent row node of this column
columnIndex - Index for this column
metadata - Meta data (column header).
Method Detail

getOwnerDocument

public Document getOwnerDocument()
The parent of col is #Document (represented by XStatement).
Returns:
The parent of this column
Overrides:
getOwnerDocument in class StreamableNode

getNodeName

public java.lang.String getNodeName()
Return "col".
Returns:
the deault column name "col".
Overrides:
getNodeName in class UnImplNode

getFirstChild

public Node getFirstChild()
Return the col text node (the column value).
Returns:
the column value
Overrides:
getFirstChild in class UnImplNode

getNextSibling

public Node getNextSibling()
Return the next col element for the current row.
Returns:
a Column node or null.
Overrides:
getNextSibling in class UnImplNode

getParentNode

public Node getParentNode()
The parent node of col is a row.
Returns:
The parent node of this column
Overrides:
getParentNode in class UnImplNode

hasChildNodes

public boolean hasChildNodes()
Tell if there are any children of col, which is always true. I.e., col contains a text node with a textual representation of the column value.
Returns:
True
Overrides:
hasChildNodes in class UnImplNode

getAttributes

public NamedNodeMap getAttributes()
Return the metadata for this column.
Returns:
the metadata for this column(column header).
Overrides:
getAttributes in class StreamableNode


Copyright � 2000 Apache XML Project. All Rights Reserved.