org.w3c.tidy

Class DOMNodeImpl

Implemented Interfaces:
org.w3c.dom.Node
Known Direct Subclasses:
DOMAttrImpl, DOMCharacterDataImpl, DOMDocumentImpl, DOMDocumentTypeImpl, DOMElementImpl, DOMProcessingInstructionImpl

public class DOMNodeImpl
extends java.lang.Object
implements org.w3c.dom.Node

DOMNodeImpl.
Version:
$Revision: 738 $ ($Author: fgiust $)
Authors:
Dave Raggett dsr@w3.org
Andy Quick ac.quick@sympatico.ca (translation to Java)
Fabrizio Giustina

Field Summary

protected Node
adaptee
Wrapped tidy node.

Constructor Summary

DOMNodeImpl(Node adaptee)
Intantiates a new DOM node.

Method Summary

org.w3c.dom.Node
appendChild(org.w3c.dom.Node newChild)
org.w3c.dom.Node
cloneNode(boolean deep)
short
compareDocumentPosition(org.w3c.dom.Node other)
org.w3c.dom.NamedNodeMap
getAttributes()
String
getBaseURI()
org.w3c.dom.NodeList
getChildNodes()
Object
getFeature(String feature, String version)
org.w3c.dom.Node
getFirstChild()
org.w3c.dom.Node
getLastChild()
String
getLocalName()
String
getNamespaceURI()
org.w3c.dom.Node
getNextSibling()
String
getNodeName()
short
getNodeType()
String
getNodeValue()
org.w3c.dom.Document
getOwnerDocument()
org.w3c.dom.Node
getParentNode()
String
getPrefix()
org.w3c.dom.Node
getPreviousSibling()
String
getTextContent()
Object
getUserData(String key)
boolean
hasAttributes()
boolean
hasChildNodes()
org.w3c.dom.Node
insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)
boolean
isDefaultNamespace(String namespaceURI)
boolean
isEqualNode(org.w3c.dom.Node arg)
boolean
isSameNode(org.w3c.dom.Node other)
boolean
isSupported(String feature, String version)
String
lookupNamespaceURI(String prefix)
String
lookupPrefix(String namespaceURI)
void
normalize()
Do nothing: text nodes in html documents are important and jtidy already removes useless text during parsing.
org.w3c.dom.Node
removeChild(org.w3c.dom.Node oldChild)
org.w3c.dom.Node
replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)
void
setNodeValue(String nodeValue)
void
setPrefix(String prefix)
void
setTextContent(String textContent)
Object
setUserData(String key, Object data, UserDataHandler handler)
boolean
supports(String feature, String version)
DOM2 - not implemented.

Field Details

adaptee

protected Node adaptee
Wrapped tidy node.

Constructor Details

DOMNodeImpl

protected DOMNodeImpl(Node adaptee)
Intantiates a new DOM node.
Parameters:
adaptee - wrapped Tidy node

Method Details

appendChild

public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
See Also:
org.w3c.dom.Node.appendChild

cloneNode

public org.w3c.dom.Node cloneNode(boolean deep)
See Also:
org.w3c.dom.Node.cloneNode(boolean)

compareDocumentPosition

public short compareDocumentPosition(org.w3c.dom.Node other)
            throws DOMException
See Also:
org.w3c.dom.Node.compareDocumentPosition(org.w3c.dom.Node)

getAttributes

public org.w3c.dom.NamedNodeMap getAttributes()
See Also:
org.w3c.dom.Node.getAttributes

getBaseURI

public String getBaseURI()
See Also:
org.w3c.dom.Node.getBaseURI()

getChildNodes

public org.w3c.dom.NodeList getChildNodes()
See Also:
org.w3c.dom.Node.getChildNodes

getFeature

public Object getFeature(String feature,
                         String version)
See Also:
org.w3c.dom.Node.getFeature(java.lang.String, java.lang.String)

getFirstChild

public org.w3c.dom.Node getFirstChild()
See Also:
org.w3c.dom.Node.getFirstChild

getLastChild

public org.w3c.dom.Node getLastChild()
See Also:
org.w3c.dom.Node.getLastChild

getLocalName

public String getLocalName()
See Also:
org.w3c.dom.Node.getLocalName()

getNamespaceURI

public String getNamespaceURI()
See Also:
org.w3c.dom.Node.getNamespaceURI()

getNextSibling

public org.w3c.dom.Node getNextSibling()
See Also:
org.w3c.dom.Node.getNextSibling

getNodeName

public String getNodeName()
See Also:
org.w3c.dom.Node.getNodeName

getNodeType

public short getNodeType()
See Also:
org.w3c.dom.Node.getNodeType

getNodeValue

public String getNodeValue()
See Also:
org.w3c.dom.Node.getNodeValue

getOwnerDocument

public org.w3c.dom.Document getOwnerDocument()
See Also:
org.w3c.dom.Node.getOwnerDocument

getParentNode

public org.w3c.dom.Node getParentNode()
See Also:
org.w3c.dom.Node.getParentNode

getPrefix

public String getPrefix()
See Also:
org.w3c.dom.Node.getPrefix()

getPreviousSibling

public org.w3c.dom.Node getPreviousSibling()
See Also:
org.w3c.dom.Node.getPreviousSibling

getTextContent

public String getTextContent()
            throws DOMException
See Also:
org.w3c.dom.Node.getTextContent()

getUserData

public Object getUserData(String key)
See Also:
org.w3c.dom.Node.getUserData(java.lang.String)

hasAttributes

public boolean hasAttributes()
See Also:
org.w3c.dom.Node.hasAttributes

hasChildNodes

public boolean hasChildNodes()
See Also:
org.w3c.dom.Node.hasChildNodes

insertBefore

public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node refChild)
See Also:
org.w3c.dom.Node.insertBefore

isDefaultNamespace

public boolean isDefaultNamespace(String namespaceURI)
See Also:
org.w3c.dom.Node.isDefaultNamespace(java.lang.String)

isEqualNode

public boolean isEqualNode(org.w3c.dom.Node arg)
See Also:
org.w3c.dom.Node.isEqualNode(org.w3c.dom.Node)

isSameNode

public boolean isSameNode(org.w3c.dom.Node other)
See Also:
org.w3c.dom.Node.isSameNode(org.w3c.dom.Node)

isSupported

public boolean isSupported(String feature,
                           String version)
See Also:
org.w3c.dom.Node.isSupported(java.lang.String, java.lang.String)

lookupNamespaceURI

public String lookupNamespaceURI(String prefix)
See Also:
org.w3c.dom.Node.lookupNamespaceURI(java.lang.String)

lookupPrefix

public String lookupPrefix(String namespaceURI)
See Also:
org.w3c.dom.Node.lookupPrefix(java.lang.String)

normalize

public void normalize()
Do nothing: text nodes in html documents are important and jtidy already removes useless text during parsing.
See Also:
org.w3c.dom.Node.normalize()

removeChild

public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
See Also:
org.w3c.dom.Node.removeChild

replaceChild

public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
                                     org.w3c.dom.Node oldChild)
See Also:
org.w3c.dom.Node.replaceChild

setNodeValue

public void setNodeValue(String nodeValue)
See Also:
org.w3c.dom.Node.setNodeValue

setPrefix

public void setPrefix(String prefix)
            throws DOMException
See Also:
org.w3c.dom.Node.setPrefix(java.lang.String)

setTextContent

public void setTextContent(String textContent)
            throws DOMException
See Also:
org.w3c.dom.Node.setTextContent(java.lang.String)

setUserData

public Object setUserData(String key,
                          Object data,
                          UserDataHandler handler)
See Also:
org.w3c.dom.Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)

supports

public boolean supports(String feature,
                        String version)
DOM2 - not implemented.
See Also:
isSupported(java.lang.String, java.lang.String)