org.apache.xalan.lib.sql
Class ColumnHeader

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

public class ColumnHeader
extends StreamableNode
implements NamedNodeMap

This class represents a column-header Node, which contains the metadata for a column.


Constructor Summary
ColumnHeader(XStatement statement, RowSet parent, int columnIndex, java.sql.ResultSetMetaData metaData)
          Constructor ColumnHeader
 
Method Summary
 NamedNodeMap getAttributes()
          Return the metadata for this column.
 Node getFirstChild()
          getFirstChild - Always returns null.
 int getLength()
          Get the number of attributes of column metadata attributes.
 Node getNamedItem(java.lang.String name)
          Get an attribute by name from the metadata for this column.
 Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
          Get an attribute by namespaced name from the metadata for this column.
 Node getNextSibling()
          Returns column-header Node for the next column.
 java.lang.String getNodeName()
          Return Node name, "column-header".
 Node getParentNode()
          The parent node of a column-header Node is the row-set Node.
 boolean hasChildNodes()
          Tell if there are any children of the column-header Node, which is always false.
 Node item(int index)
          Get an attribute by index from the metadata for this column.
 Node removeNamedItem(java.lang.String name)
          Remove an attribute - Not supported
 Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
          Removed namespaced attribute - Not supported
 Node setNamedItem(Node arg)
          Set an attribute from the metadata for this column.
 Node setNamedItemNS(Node arg)
          Set namespaced attribute - Not supported
 
Methods inherited from class org.apache.xalan.lib.sql.StreamableNode
getLocalName, getNamespaceURI, getNodeTest, getNodeType, getOwnerDocument, getPrefix, getUid, getXStatement, isSupported, 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

ColumnHeader

public ColumnHeader(XStatement statement,
                    RowSet parent,
                    int columnIndex,
                    java.sql.ResultSetMetaData metaData)
Constructor ColumnHeader
Parameters:
statement - Owning document
parent - Parent node, a row-set
columnIndex - Index of column this header is for
metaData - Meta data
Method Detail

getNodeName

public java.lang.String getNodeName()
Return Node name, "column-header".
Returns:
"column-header".
Overrides:
getNodeName in class UnImplNode

getFirstChild

public Node getFirstChild()
getFirstChild - Always returns null.
Returns:
null
Overrides:
getFirstChild in class UnImplNode

getNextSibling

public Node getNextSibling()
Returns column-header Node for the next column.
Returns:
a ColumnHeader Node or null.
Overrides:
getNextSibling in class UnImplNode

getParentNode

public Node getParentNode()
The parent node of a column-header Node is the row-set Node.
Returns:
a RowSet.
Overrides:
getParentNode in class UnImplNode

hasChildNodes

public boolean hasChildNodes()
Tell if there are any children of the column-header Node, which is always false.
Returns:
false
Overrides:
hasChildNodes in class UnImplNode

getAttributes

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

getNamedItem

public Node getNamedItem(java.lang.String name)
Get an attribute by name from the metadata for this column.
Specified by:
getNamedItem in interface NamedNodeMap
Parameters:
name - Attribute name
Returns:
Attribute with given name or null if not found
Overrides:
getNamedItem in class StreamableNode

item

public Node item(int index)
Get an attribute by index from the metadata for this column.
Specified by:
item in interface NamedNodeMap
Parameters:
index - Index of attribut to get
Returns:
Attribute node at given index or null if not found
Overrides:
item in class StreamableNode

getLength

public int getLength()
Get the number of attributes of column metadata attributes.
Specified by:
getLength in interface NamedNodeMap
Returns:
the number of attributes of column
Overrides:
getLength in class StreamableNode

getNamedItemNS

public Node getNamedItemNS(java.lang.String namespaceURI,
                           java.lang.String localName)
Get an attribute by namespaced name from the metadata for this column.
Specified by:
getNamedItemNS in interface NamedNodeMap
Parameters:
namespaceURI - Namespace URI of attribute
localName - Local name of attribute
Returns:
the attribute with the given local name and a null namespace, or null.
Overrides:
getNamedItemNS in class StreamableNode

setNamedItem

public Node setNamedItem(Node arg)
                  throws DOMException
Set an attribute from the metadata for this column. Not supported
Specified by:
setNamedItem in interface NamedNodeMap
Parameters:
arg -  
Returns:
null
Throws:
DOMException -  
Overrides:
setNamedItem in class StreamableNode

removeNamedItem

public Node removeNamedItem(java.lang.String name)
                     throws DOMException
Remove an attribute - Not supported
Specified by:
removeNamedItem in interface NamedNodeMap
Parameters:
name -  
Returns:
null
Throws:
DOMException -  
Overrides:
removeNamedItem in class StreamableNode

setNamedItemNS

public Node setNamedItemNS(Node arg)
                    throws DOMException
Set namespaced attribute - Not supported
Specified by:
setNamedItemNS in interface NamedNodeMap
Parameters:
arg -  
Returns:
null
Throws:
DOMException -  
Overrides:
setNamedItemNS in class StreamableNode

removeNamedItemNS

public Node removeNamedItemNS(java.lang.String namespaceURI,
                              java.lang.String localName)
                       throws DOMException
Removed namespaced attribute - Not supported
Specified by:
removeNamedItemNS in interface NamedNodeMap
Parameters:
namespaceURI -  
localName -  
Returns:
null
Throws:
DOMException -  
Overrides:
removeNamedItemNS in class StreamableNode


Copyright � 2000 Apache XML Project. All Rights Reserved.