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
public class DOMNodeImpl extends Object implements Node
DOMNodeImpl.- Version:
- $Revision$ ($Author$)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
-
Field Summary
Fields Modifier and Type Field Description protected NodeadapteeWrapped tidy node.-
Fields 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 Modifier Constructor Description protectedDOMNodeImpl(Node adaptee)Intantiates a new DOM node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeappendChild(Node newChild)NodecloneNode(boolean deep)shortcompareDocumentPosition(Node other)TODO DOM level 3 compareDocumentPosition() Not implemented.NamedNodeMapgetAttributes()StringgetBaseURI()TODO DOM level 3 getBaseURI() Not implemented.NodeListgetChildNodes()ObjectgetFeature(String feature, String version)TODO DOM level 3 getFeature() Not implemented.NodegetFirstChild()NodegetLastChild()StringgetLocalName()StringgetNamespaceURI()NodegetNextSibling()StringgetNodeName()shortgetNodeType()StringgetNodeValue()DocumentgetOwnerDocument()NodegetParentNode()StringgetPrefix()NodegetPreviousSibling()StringgetTextContent()TODO DOM level 3 getTextContent() Not implemented.ObjectgetUserData(String key)TODO DOM level 3 getUserData() Not implemented.booleanhasAttributes()booleanhasChildNodes()NodeinsertBefore(Node newChild, Node refChild)booleanisDefaultNamespace(String namespaceURI)booleanisEqualNode(Node arg)TODO DOM level 3 isEqualNode() Not implemented.booleanisSameNode(Node other)TODO DOM level 3 isSameNode() Not implemented.booleanisSupported(String feature, String version)StringlookupNamespaceURI(String prefix)StringlookupPrefix(String namespaceURI)voidnormalize()Do nothing: text nodes in html documents are important and jtidy already removes useless text during parsing.NoderemoveChild(Node oldChild)NodereplaceChild(Node newChild, Node oldChild)voidsetNodeValue(String nodeValue)voidsetPrefix(String prefix)voidsetTextContent(String textContent)TODO DOM level 3 setTextContent() Not implemented.ObjectsetUserData(String key, Object data, UserDataHandler handler)TODO DOM level 3 setUserData() Not implemented.booleansupports(String feature, String version)DOM2 - not implemented.
-
-
-
Field Detail
-
adaptee
protected Node adaptee
Wrapped tidy node.
-
-
Constructor Detail
-
DOMNodeImpl
protected DOMNodeImpl(Node adaptee)
Intantiates a new DOM node.- Parameters:
adaptee- wrapped Tidy node
-
-
Method Detail
-
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValuein interfaceNode- See Also:
Node.getNodeValue()
-
setNodeValue
public void setNodeValue(String nodeValue)
- Specified by:
setNodeValuein interfaceNode- See Also:
Node.setNodeValue(java.lang.String)
-
getNodeName
public String getNodeName()
- Specified by:
getNodeNamein interfaceNode- See Also:
Node.getNodeName()
-
getNodeType
public short getNodeType()
- Specified by:
getNodeTypein interfaceNode- See Also:
Node.getNodeType()
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNodein interfaceNode- See Also:
Node.getParentNode()
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodesin interfaceNode- See Also:
Node.getChildNodes()
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChildin interfaceNode- See Also:
Node.getFirstChild()
-
getLastChild
public Node getLastChild()
- Specified by:
getLastChildin interfaceNode- See Also:
Node.getLastChild()
-
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSiblingin interfaceNode- See Also:
Node.getPreviousSibling()
-
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSiblingin interfaceNode- See Also:
Node.getNextSibling()
-
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributesin interfaceNode- See Also:
Node.getAttributes()
-
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocumentin interfaceNode- See Also:
Node.getOwnerDocument()
-
insertBefore
public Node insertBefore(Node newChild, Node refChild)
- Specified by:
insertBeforein interfaceNode- See Also:
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
-
replaceChild
public Node replaceChild(Node newChild, Node oldChild)
- Specified by:
replaceChildin interfaceNode- See Also:
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
-
removeChild
public Node removeChild(Node oldChild)
- Specified by:
removeChildin interfaceNode- See Also:
Node.removeChild(org.w3c.dom.Node)
-
appendChild
public Node appendChild(Node newChild)
- Specified by:
appendChildin interfaceNode- See Also:
Node.appendChild(org.w3c.dom.Node)
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodesin interfaceNode- See Also:
Node.hasChildNodes()
-
cloneNode
public Node cloneNode(boolean deep)
- Specified by:
cloneNodein interfaceNode- See Also:
Node.cloneNode(boolean)
-
normalize
public void normalize()
Do nothing: text nodes in html documents are important and jtidy already removes useless text during parsing.- Specified by:
normalizein interfaceNode- See Also:
Node.normalize()
-
supports
public boolean supports(String feature, String version)
DOM2 - not implemented.- Parameters:
feature- feature to checkversion- the version to check- Returns:
- is feature for version supported
- See Also:
isSupported(java.lang.String, java.lang.String)
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceNode- See Also:
Node.getNamespaceURI()
-
getPrefix
public String getPrefix()
- Specified by:
getPrefixin interfaceNode- See Also:
Node.getPrefix()
-
setPrefix
public void setPrefix(String prefix) throws DOMException
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException- See Also:
Node.setPrefix(java.lang.String)
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceNode- See Also:
Node.getLocalName()
-
isSupported
public boolean isSupported(String feature, String version)
- Specified by:
isSupportedin interfaceNode- See Also:
Node.isSupported(java.lang.String, java.lang.String)
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributesin interfaceNode- See Also:
Node.hasAttributes()
-
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
TODO DOM level 3 compareDocumentPosition() Not implemented.- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException- See Also:
Node.compareDocumentPosition(org.w3c.dom.Node)
-
getBaseURI
public String getBaseURI()
TODO DOM level 3 getBaseURI() Not implemented. Returns null.- Specified by:
getBaseURIin interfaceNode- See Also:
Node.getBaseURI()
-
getFeature
public Object getFeature(String feature, String version)
TODO DOM level 3 getFeature() Not implemented. Returns null.- Specified by:
getFeaturein interfaceNode- See Also:
Node.getFeature(java.lang.String, java.lang.String)
-
getTextContent
public String getTextContent() throws DOMException
TODO DOM level 3 getTextContent() Not implemented. Returns null.- Specified by:
getTextContentin interfaceNode- Throws:
DOMException- See Also:
Node.getTextContent()
-
getUserData
public Object getUserData(String key)
TODO DOM level 3 getUserData() Not implemented. Returns null.- Specified by:
getUserDatain interfaceNode- See Also:
Node.getUserData(java.lang.String)
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespacein interfaceNode- See Also:
Node.isDefaultNamespace(java.lang.String)
-
isEqualNode
public boolean isEqualNode(Node arg)
TODO DOM level 3 isEqualNode() Not implemented. Returns false.- Specified by:
isEqualNodein interfaceNode- See Also:
Node.isEqualNode(org.w3c.dom.Node)
-
isSameNode
public boolean isSameNode(Node other)
TODO DOM level 3 isSameNode() Not implemented. Returns false.- Specified by:
isSameNodein interfaceNode- See Also:
Node.isSameNode(org.w3c.dom.Node)
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURIin interfaceNode- See Also:
Node.lookupNamespaceURI(java.lang.String)
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefixin interfaceNode- See Also:
Node.lookupPrefix(java.lang.String)
-
setTextContent
public void setTextContent(String textContent) throws DOMException
TODO DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR- Specified by:
setTextContentin interfaceNode- Throws:
DOMException- See Also:
Node.setTextContent(java.lang.String)
-
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
TODO DOM level 3 setUserData() Not implemented. Returns null.- Specified by:
setUserDatain interfaceNode- See Also:
Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
-
-