org.apache.xalan.lib.sql
Class StreamableNode

java.lang.Object
  |
  +--org.apache.xml.utils.UnImplNode
        |
        +--org.apache.xalan.lib.sql.StreamableNode
Direct Known Subclasses:
Column, ColumnAttribute, ColumnData, ColumnHeader, Row, RowSet, XStatement

public class StreamableNode
extends UnImplNode
implements NodeTestFilter, NamedNodeMap, DOMOrder

This is the superclass for all nodes in the org.apache.xalan.lib.sql package.


Constructor Summary
StreamableNode(XStatement statement)
          Constructor StreamableNode
 
Method Summary
 NamedNodeMap getAttributes()
          Get list of attributes
 int getLength()
          The number of attributes for this node - Not implemented
 java.lang.String getLocalName()
          Return NodeName.
 Node getNamedItem(java.lang.String name)
          Get the attribute with the given name - Not implemented
 Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
          Get the attribute with the given namespaced name - Not implemented
 java.lang.String getNamespaceURI()
          getNamespaceURI - Always Returns null.
 NodeTest getNodeTest()
          Return the current NodeTest instance
 short getNodeType()
          Streamable nodes default to being elements.
 Document getOwnerDocument()
          Get Owner Document
 java.lang.String getPrefix()
          getPrefix - Always Returns null.
 int getUid()
          Get the UID (document order index).
 XStatement getXStatement()
          Get XStatement (owning document)
 boolean isSupported(java.lang.String feature, java.lang.String version)
          Check if a given feature is supported
 Node item(int index)
          Return the attribute at the given index - Not implemented
 Node removeNamedItem(java.lang.String name)
          Remove the attribute with the given name - Not supported
 Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
          Remove the attribute with the given namespaced name - Not supported
 Node setNamedItem(Node arg)
          Set the given attribute - Not supported
 Node setNamedItemNS(Node arg)
          Set the attribute with the given namespaced name - Not supported
 void setNodeTest(NodeTest nodeTest)
          Set NodeTest instance
 
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, getFirstChild, getImplementation, getLastChild, getNextSibling, getNodeName, getNodeValue, getOwnerElement, getParentNode, getPreviousSibling, getSpecified, getTagName, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, 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

StreamableNode

public StreamableNode(XStatement statement)
Constructor StreamableNode
Parameters:
statement - Owning document
Method Detail

getXStatement

public XStatement getXStatement()
Get XStatement (owning document)
Returns:
owning document

isSupported

public boolean isSupported(java.lang.String feature,
                           java.lang.String version)
Check if a given feature is supported
Parameters:
feature - Feature to check
version - Version to check
Returns:
True if NodeTest feature is supported
Overrides:
isSupported in class UnImplNode

getNodeTest

public NodeTest getNodeTest()
Return the current NodeTest instance
Returns:
the current NodeTest instance

setNodeTest

public void setNodeTest(NodeTest nodeTest)
Set NodeTest instance
Specified by:
setNodeTest in interface NodeTestFilter
Parameters:
nodeTest - The NodeTest to use

getOwnerDocument

public Document getOwnerDocument()
Get Owner Document
Returns:
owner document
Overrides:
getOwnerDocument in class UnImplNode

getNodeType

public short getNodeType()
Streamable nodes default to being elements.
Returns:
Node.ELEMENT_NODE;
Overrides:
getNodeType in class UnImplNode

getLocalName

public java.lang.String getLocalName()
Return NodeName.
Returns:
the node name
Overrides:
getLocalName in class UnImplNode

getNamespaceURI

public java.lang.String getNamespaceURI()
getNamespaceURI - Always Returns null.
Returns:
null
Overrides:
getNamespaceURI in class UnImplNode

getPrefix

public java.lang.String getPrefix()
getPrefix - Always Returns null.
Returns:
null
Overrides:
getPrefix in class UnImplNode

getAttributes

public NamedNodeMap getAttributes()
Get list of attributes
Returns:
the list of attributes for this node, itself
Overrides:
getAttributes in class UnImplNode

getNamedItem

public Node getNamedItem(java.lang.String name)
Get the attribute with the given name - Not implemented
Specified by:
getNamedItem in interface NamedNodeMap
Parameters:
name - attribute name to get
Returns:
null

item

public Node item(int index)
Return the attribute at the given index - Not implemented
Specified by:
item in interface NamedNodeMap
Parameters:
index - Index of attribute to get
Returns:
null
Overrides:
item in class UnImplNode

getLength

public int getLength()
The number of attributes for this node - Not implemented
Specified by:
getLength in interface NamedNodeMap
Returns:
0
Overrides:
getLength in class UnImplNode

getNamedItemNS

public Node getNamedItemNS(java.lang.String namespaceURI,
                           java.lang.String localName)
Get the attribute with the given namespaced name - Not implemented
Specified by:
getNamedItemNS in interface NamedNodeMap
Parameters:
namespaceURI - Namespace URI of the attribute to get
localName - Local name of the attribute to get
Returns:
null

setNamedItem

public Node setNamedItem(Node arg)
                  throws DOMException
Set the given attribute - Not supported
Specified by:
setNamedItem in interface NamedNodeMap
Parameters:
arg - attribute node
Returns:
null
Throws:
DOMException -  

removeNamedItem

public Node removeNamedItem(java.lang.String name)
                     throws DOMException
Remove the attribute with the given name - Not supported
Specified by:
removeNamedItem in interface NamedNodeMap
Parameters:
name - Attribute name
Returns:
null
Throws:
DOMException -  

setNamedItemNS

public Node setNamedItemNS(Node arg)
                    throws DOMException
Set the attribute with the given namespaced name - Not supported
Specified by:
setNamedItemNS in interface NamedNodeMap
Parameters:
arg - Attriute node
Returns:
null
Throws:
DOMException -  

removeNamedItemNS

public Node removeNamedItemNS(java.lang.String namespaceURI,
                              java.lang.String localName)
                       throws DOMException
Remove the attribute with the given namespaced name - Not supported
Specified by:
removeNamedItemNS in interface NamedNodeMap
Parameters:
namespaceURI - Namespace URI of the attribute to remove
localName - Local name of the attribute to remove
Returns:
null
Throws:
DOMException -  

getUid

public int getUid()
Get the UID (document order index).
Specified by:
getUid in interface DOMOrder
Returns:
document order index for this node


Copyright � 2000 Apache XML Project. All Rights Reserved.