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: 1132 $ ($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) shortcompareDocumentPosition(Node other) getFeature(String feature, String version) shortgetUserData(String key) booleanbooleaninsertBefore(Node newChild, Node refChild) booleanisDefaultNamespace(String namespaceURI) booleanisEqualNode(Node arg) booleanisSameNode(Node other) booleanisSupported(String feature, String version) lookupNamespaceURI(String prefix) lookupPrefix(String namespaceURI) voidDo nothing: text nodes in html documents are important and jtidy already removes useless text during parsing.removeChild(Node oldChild) replaceChild(Node newChild, Node oldChild) voidsetNodeValue(String nodeValue) voidvoidsetTextContent(String textContent) setUserData(String key, Object data, UserDataHandler handler) booleanDOM2 - 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:
getNodeValuein interfaceNode- See Also:
-
setNodeValue
- Specified by:
setNodeValuein interfaceNode- See Also:
-
getNodeName
- Specified by:
getNodeNamein interfaceNode- See Also:
-
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode- See Also:
-
getParentNode
- Specified by:
getParentNodein interfaceNode- See Also:
-
getChildNodes
- Specified by:
getChildNodesin interfaceNode- See Also:
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode- See Also:
-
getLastChild
- Specified by:
getLastChildin interfaceNode- See Also:
-
getPreviousSibling
- Specified by:
getPreviousSiblingin interfaceNode- See Also:
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode- See Also:
-
getAttributes
- Specified by:
getAttributesin interfaceNode- See Also:
-
getOwnerDocument
- Specified by:
getOwnerDocumentin interfaceNode- See Also:
-
insertBefore
- Specified by:
insertBeforein interfaceNode- See Also:
-
replaceChild
- Specified by:
replaceChildin interfaceNode- See Also:
-
removeChild
- Specified by:
removeChildin interfaceNode- See Also:
-
appendChild
- Specified by:
appendChildin interfaceNode- See Also:
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodesin 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:
getNamespaceURIin interfaceNode- See Also:
-
getPrefix
-
setPrefix
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException- See Also:
-
getLocalName
- Specified by:
getLocalNamein interfaceNode- See Also:
-
isSupported
- Specified by:
isSupportedin interfaceNode- See Also:
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributesin interfaceNode- See Also:
-
compareDocumentPosition
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException- See Also:
- To Do:
- DOM level 3 compareDocumentPosition() Not implemented.
-
getBaseURI
- Specified by:
getBaseURIin interfaceNode- See Also:
- To Do:
- DOM level 3 getBaseURI() Not implemented. Returns null.
-
getFeature
- Specified by:
getFeaturein interfaceNode- See Also:
- To Do:
- DOM level 3 getFeature() Not implemented. Returns null.
-
getTextContent
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException- See Also:
- To Do:
- DOM level 3 getTextContent() Not implemented. Returns null.
-
getUserData
- Specified by:
getUserDatain interfaceNode- See Also:
- To Do:
- DOM level 3 getUserData() Not implemented. Returns null.
-
isDefaultNamespace
- Specified by:
isDefaultNamespacein interfaceNode- See Also:
-
isEqualNode
- Specified by:
isEqualNodein interfaceNode- See Also:
- To Do:
- DOM level 3 isEqualNode() Not implemented. Returns false.
-
isSameNode
- Specified by:
isSameNodein interfaceNode- See Also:
- To Do:
- DOM level 3 isSameNode() Not implemented. Returns false.
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURIin interfaceNode- See Also:
-
lookupPrefix
- Specified by:
lookupPrefixin interfaceNode- See Also:
-
setTextContent
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException- See Also:
- To Do:
- DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
-
setUserData
- Specified by:
setUserDatain interfaceNode- See Also:
- To Do:
- DOM level 3 setUserData() Not implemented. Returns null.
-