Package org.w3c.tidy
Class DOMNodeImpl
java.lang.Object
org.w3c.tidy.DOMNodeImpl
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
DOMAttrImpl
,DOMCharacterDataImpl
,DOMDocumentImpl
,DOMDocumentTypeImpl
,DOMElementImpl
,DOMProcessingInstructionImpl
DOMNodeImpl.
- Version:
- $Revision: 1121 $ ($Author: aditsu $)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
Field Summary
FieldsFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendChild
(Node newChild) cloneNode
(boolean deep) short
compareDocumentPosition
(Node other) getFeature
(String feature, String version) short
getUserData
(String key) boolean
boolean
insertBefore
(Node newChild, Node refChild) boolean
isDefaultNamespace
(String namespaceURI) boolean
isEqualNode
(Node arg) boolean
isSameNode
(Node other) boolean
isSupported
(String feature, String version) lookupNamespaceURI
(String prefix) lookupPrefix
(String namespaceURI) void
Do nothing: text nodes in html documents are important and jtidy already removes useless text during parsing.removeChild
(Node oldChild) replaceChild
(Node newChild, Node oldChild) void
setNodeValue
(String nodeValue) void
void
setTextContent
(String textContent) setUserData
(String key, Object data, UserDataHandler handler) boolean
DOM2 - not implemented.
-
Field Details
-
adaptee
Wrapped tidy node.
-
-
Constructor Details
-
DOMNodeImpl
Intantiates a new DOM node.- Parameters:
adaptee
- wrapped Tidy node
-
-
Method Details
-
getNodeValue
- Specified by:
getNodeValue
in interfaceNode
- See Also:
-
setNodeValue
- Specified by:
setNodeValue
in interfaceNode
- See Also:
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
- See Also:
-
getNodeType
public short getNodeType()- Specified by:
getNodeType
in interfaceNode
- See Also:
-
getParentNode
- Specified by:
getParentNode
in interfaceNode
- See Also:
-
getChildNodes
- Specified by:
getChildNodes
in interfaceNode
- See Also:
-
getFirstChild
- Specified by:
getFirstChild
in interfaceNode
- See Also:
-
getLastChild
- Specified by:
getLastChild
in interfaceNode
- See Also:
-
getPreviousSibling
- Specified by:
getPreviousSibling
in interfaceNode
- See Also:
-
getNextSibling
- Specified by:
getNextSibling
in interfaceNode
- See Also:
-
getAttributes
- Specified by:
getAttributes
in interfaceNode
- See Also:
-
getOwnerDocument
- Specified by:
getOwnerDocument
in interfaceNode
- See Also:
-
insertBefore
- Specified by:
insertBefore
in interfaceNode
- See Also:
-
replaceChild
- Specified by:
replaceChild
in interfaceNode
- See Also:
-
removeChild
- Specified by:
removeChild
in interfaceNode
- See Also:
-
appendChild
- Specified by:
appendChild
in interfaceNode
- See Also:
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodes
in interfaceNode
- See Also:
-
cloneNode
-
normalize
public void normalize()Do nothing: text nodes in html documents are important and jtidy already removes useless text during parsing. -
supports
DOM2 - not implemented.- See Also:
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNode
- See Also:
-
getPrefix
-
setPrefix
- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
- See Also:
-
getLocalName
- Specified by:
getLocalName
in interfaceNode
- See Also:
-
isSupported
- Specified by:
isSupported
in interfaceNode
- See Also:
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributes
in interfaceNode
- See Also:
-
compareDocumentPosition
- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
- See Also:
- To do:
- DOM level 3 compareDocumentPosition() Not implemented.
-
getBaseURI
- Specified by:
getBaseURI
in interfaceNode
- See Also:
- To do:
- DOM level 3 getBaseURI() Not implemented. Returns null.
-
getFeature
- Specified by:
getFeature
in interfaceNode
- See Also:
- To do:
- DOM level 3 getFeature() Not implemented. Returns null.
-
getTextContent
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
- See Also:
- To do:
- DOM level 3 getTextContent() Not implemented. Returns null.
-
getUserData
- Specified by:
getUserData
in interfaceNode
- See Also:
- To do:
- DOM level 3 getUserData() Not implemented. Returns null.
-
isDefaultNamespace
- Specified by:
isDefaultNamespace
in interfaceNode
- See Also:
-
isEqualNode
- Specified by:
isEqualNode
in interfaceNode
- See Also:
- To do:
- DOM level 3 isEqualNode() Not implemented. Returns false.
-
isSameNode
- Specified by:
isSameNode
in interfaceNode
- See Also:
- To do:
- DOM level 3 isSameNode() Not implemented. Returns false.
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURI
in interfaceNode
- See Also:
-
lookupPrefix
- Specified by:
lookupPrefix
in interfaceNode
- See Also:
-
setTextContent
- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
- See Also:
- To do:
- DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
-
setUserData
- Specified by:
setUserData
in interfaceNode
- See Also:
- To do:
- DOM level 3 setUserData() Not implemented. Returns null.
-