com.caucho.quercus.lib.dom
Class DOMNode<T extends org.w3c.dom.Node>

java.lang.Object
  extended by com.caucho.quercus.lib.dom.DOMWrapper<T>
      extended by com.caucho.quercus.lib.dom.DOMNode<T>
Direct Known Subclasses:
DOMAttr, DOMCharacterData, DOMDocument, DOMDocumentFragment, DOMDocumentType, DOMElement, DOMEntityReference, DOMNotation, DOMProcessingInstruction

public class DOMNode<T extends org.w3c.dom.Node>
extends DOMWrapper<T>


Constructor Summary
protected DOMNode(DOMImplementation impl, T delegate)
           
 
Method Summary
 DOMNode appendChild(DOMNode newChild)
           
 DOMNode cloneNode(boolean deep)
           
 short compareDocumentPosition(DOMNode other)
           
 DOMNamedNodeMap getAttributes()
           
 java.lang.String getBaseURI()
           
 DOMNodeList getChildNodes()
           
 java.lang.Object getFeature(java.lang.String feature, java.lang.String version)
           
 DOMNode getFirstChild()
           
 DOMNode getLastChild()
           
 java.lang.String getLocalName()
           
 java.lang.String getNamespaceURI()
           
 DOMNode getNextSibling()
           
 java.lang.String getNodeName()
           
 short getNodeType()
           
 java.lang.String getNodeValue()
           
 DOMDocument getOwnerDocument()
           
 DOMNode getParentNode()
           
 java.lang.String getPrefix()
           
 DOMNode getPreviousSibling()
           
 java.lang.String getTextContent()
           
 java.lang.Object getUserData(java.lang.String key)
           
 boolean hasAttributes()
           
 boolean hasChildNodes()
           
 DOMNode insertBefore(DOMNode newChild, DOMNode refChild)
           
 boolean isDefaultNamespace(java.lang.String namespaceURI)
           
 boolean isEqualNode(DOMNode arg)
           
 boolean isSameNode(DOMNode other)
           
 boolean isSupported(java.lang.String feature, java.lang.String version)
           
 java.lang.String lookupNamespaceURI(java.lang.String prefix)
           
 java.lang.String lookupPrefix(java.lang.String namespaceURI)
           
 void normalize()
           
 DOMNode removeChild(DOMNode oldChild)
           
 DOMNode replaceChild(DOMNode newChild, DOMNode oldChild)
           
 void setNodeValue(java.lang.String nodeValue)
           
 void setPrefix(java.lang.String prefix)
           
 void setTextContent(java.lang.String textContent)
           
 java.lang.Object setUserData(java.lang.String key, java.lang.Object data)
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.lib.dom.DOMWrapper
getImpl, getImpl, wrap, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DOMNode

protected DOMNode(DOMImplementation impl,
                  T delegate)
Method Detail

appendChild

public DOMNode appendChild(DOMNode newChild)
                    throws DOMException
Throws:
DOMException

cloneNode

public DOMNode cloneNode(boolean deep)

compareDocumentPosition

public short compareDocumentPosition(DOMNode other)
                              throws DOMException
Throws:
DOMException

getAttributes

public DOMNamedNodeMap getAttributes()

getBaseURI

public java.lang.String getBaseURI()

getChildNodes

public DOMNodeList getChildNodes()

getFeature

public java.lang.Object getFeature(java.lang.String feature,
                                   java.lang.String version)

getFirstChild

public DOMNode getFirstChild()

getLastChild

public DOMNode getLastChild()

getLocalName

public java.lang.String getLocalName()

getNamespaceURI

public java.lang.String getNamespaceURI()

getNextSibling

public DOMNode getNextSibling()

getNodeName

public java.lang.String getNodeName()

getNodeType

public short getNodeType()

getNodeValue

public java.lang.String getNodeValue()
                              throws DOMException
Throws:
DOMException

getOwnerDocument

public DOMDocument getOwnerDocument()

getParentNode

public DOMNode getParentNode()

getPrefix

public java.lang.String getPrefix()

getPreviousSibling

public DOMNode getPreviousSibling()

getTextContent

public java.lang.String getTextContent()
                                throws DOMException
Throws:
DOMException

getUserData

public java.lang.Object getUserData(java.lang.String key)

hasAttributes

public boolean hasAttributes()

hasChildNodes

public boolean hasChildNodes()

insertBefore

public DOMNode insertBefore(DOMNode newChild,
                            DOMNode refChild)
                     throws DOMException
Throws:
DOMException

isDefaultNamespace

public boolean isDefaultNamespace(java.lang.String namespaceURI)

isEqualNode

public boolean isEqualNode(DOMNode arg)

isSameNode

public boolean isSameNode(DOMNode other)

isSupported

public boolean isSupported(java.lang.String feature,
                           java.lang.String version)

lookupNamespaceURI

public java.lang.String lookupNamespaceURI(java.lang.String prefix)

lookupPrefix

public java.lang.String lookupPrefix(java.lang.String namespaceURI)

normalize

public void normalize()

removeChild

public DOMNode removeChild(DOMNode oldChild)
                    throws DOMException
Throws:
DOMException

replaceChild

public DOMNode replaceChild(DOMNode newChild,
                            DOMNode oldChild)
                     throws DOMException
Throws:
DOMException

setNodeValue

public void setNodeValue(java.lang.String nodeValue)
                  throws DOMException
Throws:
DOMException

setPrefix

public void setPrefix(java.lang.String prefix)
               throws DOMException
Throws:
DOMException

setTextContent

public void setTextContent(java.lang.String textContent)
                    throws DOMException
Throws:
DOMException

setUserData

public java.lang.Object setUserData(java.lang.String key,
                                    java.lang.Object data)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object