BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xalan.lib.sql
Class StreamableNode

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

public class StreamableNode
extends UnImplNode
implements NodeTestFilter, org.w3c.dom.NamedNodeMap, DOMOrder

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

This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.


Constructor Summary
StreamableNode(XStatement statement)
          Constructor StreamableNode
 
Method Summary
 org.w3c.dom.NamedNodeMap getAttributes()
          Get list of attributes
 int getLength()
          The number of attributes for this node - Not implemented
 java.lang.String getLocalName()
          Return NodeName.
 org.w3c.dom.Node getNamedItem(java.lang.String name)
          Get the attribute with the given name - Not implemented
 org.w3c.dom.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.
 org.w3c.dom.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
 org.w3c.dom.Node item(int index)
          Return the attribute at the given index - Not implemented
 org.w3c.dom.Node removeNamedItem(java.lang.String name)
          Remove the attribute with the given name - Not supported
 org.w3c.dom.Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
          Remove the attribute with the given namespaced name - Not supported
 org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg)
          Set the given attribute - Not supported
 org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg)
          Set the attribute with the given namespaced name - Not supported
 void setNodeTest(NodeTest nodeTest)
          Set NodeTest instance
 
Methods inherited from class weblogic.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
clone, equals, finalize, 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 org.w3c.dom.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 org.w3c.dom.NamedNodeMap getAttributes()
Get list of attributes

Returns:
the list of attributes for this node, itself
Overrides:
getAttributes in class UnImplNode

getNamedItem

public org.w3c.dom.Node getNamedItem(java.lang.String name)
Get the attribute with the given name - Not implemented
Specified by:
getNamedItem in interface org.w3c.dom.NamedNodeMap

Parameters:
name - attribute name to get
Returns:
null

item

public org.w3c.dom.Node item(int index)
Return the attribute at the given index - Not implemented
Specified by:
item in interface org.w3c.dom.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 org.w3c.dom.NamedNodeMap

Returns:
0
Overrides:
getLength in class UnImplNode

getNamedItemNS

public org.w3c.dom.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 org.w3c.dom.NamedNodeMap

Parameters:
namespaceURI - Namespace URI of the attribute to get
localName - Local name of the attribute to get
Returns:
null

setNamedItem

public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg)
                              throws org.w3c.dom.DOMException
Set the given attribute - Not supported
Specified by:
setNamedItem in interface org.w3c.dom.NamedNodeMap

Parameters:
arg - attribute node
Returns:
null
Throws:
org.w3c.dom.DOMException -  

removeNamedItem

public org.w3c.dom.Node removeNamedItem(java.lang.String name)
                                 throws org.w3c.dom.DOMException
Remove the attribute with the given name - Not supported
Specified by:
removeNamedItem in interface org.w3c.dom.NamedNodeMap

Parameters:
name - Attribute name
Returns:
null
Throws:
org.w3c.dom.DOMException -  

setNamedItemNS

public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg)
                                throws org.w3c.dom.DOMException
Set the attribute with the given namespaced name - Not supported
Specified by:
setNamedItemNS in interface org.w3c.dom.NamedNodeMap

Parameters:
arg - Attriute node
Returns:
null
Throws:
org.w3c.dom.DOMException -  

removeNamedItemNS

public org.w3c.dom.Node removeNamedItemNS(java.lang.String namespaceURI,
                                          java.lang.String localName)
                                   throws org.w3c.dom.DOMException
Remove the attribute with the given namespaced name - Not supported
Specified by:
removeNamedItemNS in interface org.w3c.dom.NamedNodeMap

Parameters:
namespaceURI - Namespace URI of the attribute to remove
localName - Local name of the attribute to remove
Returns:
null
Throws:
org.w3c.dom.DOMException -  

getUid

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

Returns:
document order index for this node

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.