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$ ($Author$)
- 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) TODO DOM level 3 compareDocumentPosition() Not implemented.TODO DOM level 3 getBaseURI() Not implemented.getFeature
(String feature, String version) TODO DOM level 3 getFeature() Not implemented.short
TODO DOM level 3 getTextContent() Not implemented.getUserData
(String key) TODO DOM level 3 getUserData() Not implemented.boolean
boolean
insertBefore
(Node newChild, Node refChild) boolean
isDefaultNamespace
(String namespaceURI) boolean
isEqualNode
(Node arg) TODO DOM level 3 isEqualNode() Not implemented.boolean
isSameNode
(Node other) TODO DOM level 3 isSameNode() Not implemented.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) TODO DOM level 3 setTextContent() Not implemented.setUserData
(String key, Object data, UserDataHandler handler) TODO DOM level 3 setUserData() Not implemented.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.- Parameters:
feature
- feature to checkversion
- the version to check- Returns:
- is feature for version supported
- 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
TODO DOM level 3 compareDocumentPosition() Not implemented.- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
- See Also:
-
getBaseURI
TODO DOM level 3 getBaseURI() Not implemented. Returns null.- Specified by:
getBaseURI
in interfaceNode
- See Also:
-
getFeature
TODO DOM level 3 getFeature() Not implemented. Returns null.- Specified by:
getFeature
in interfaceNode
- See Also:
-
getTextContent
TODO DOM level 3 getTextContent() Not implemented. Returns null.- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
- See Also:
-
getUserData
TODO DOM level 3 getUserData() Not implemented. Returns null.- Specified by:
getUserData
in interfaceNode
- See Also:
-
isDefaultNamespace
- Specified by:
isDefaultNamespace
in interfaceNode
- See Also:
-
isEqualNode
TODO DOM level 3 isEqualNode() Not implemented. Returns false.- Specified by:
isEqualNode
in interfaceNode
- See Also:
-
isSameNode
TODO DOM level 3 isSameNode() Not implemented. Returns false.- Specified by:
isSameNode
in interfaceNode
- See Also:
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURI
in interfaceNode
- See Also:
-
lookupPrefix
- Specified by:
lookupPrefix
in interfaceNode
- See Also:
-
setTextContent
TODO DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
- See Also:
-
setUserData
TODO DOM level 3 setUserData() Not implemented. Returns null.- Specified by:
setUserData
in interfaceNode
- See Also:
-