Package org.w3c.tidy
Class DOMDocumentImpl
java.lang.Object
org.w3c.tidy.DOMNodeImpl
org.w3c.tidy.DOMDocumentImpl
DOMDocumentImpl.
- Version:
- $Revision: 1125 $ ($Author: aditsu $)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
Field Summary
Fields inherited from class org.w3c.tidy.DOMNodeImpl
adaptee
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
ConstructorsModifierConstructorDescriptionprotected
DOMDocumentImpl
(Node adaptee) Instantiates a new Dom document with a default tag table. -
Method Summary
Modifier and TypeMethodDescriptioncreateAttribute
(String name) createAttributeNS
(String namespaceURI, String qualifiedName) createCDATASection
(String data) createComment
(String data) createElement
(String tagName) createElementNS
(String namespaceURI, String qualifiedName) createEntityReference
(String name) createProcessingInstruction
(String target, String data) createTextNode
(String data) getElementById
(String elementId) getElementsByTagName
(String tagname) getElementsByTagNameNS
(String namespaceURI, String localName) short
boolean
boolean
importNode
(Node importedNode, boolean deep) void
renameNode
(Node n, String namespaceURI, String qualifiedName) void
setDocumentURI
(String documentURI) void
setStrictErrorChecking
(boolean strictErrorChecking) void
setXmlStandalone
(boolean xmlStandalone) void
setXmlVersion
(String xmlVersion) Methods inherited from class org.w3c.tidy.DOMNodeImpl
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, supports
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Constructor Details
-
DOMDocumentImpl
Instantiates a new Dom document with a default tag table.- Parameters:
adaptee
- tidy Node
-
-
Method Details
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
- Overrides:
getNodeName
in classDOMNodeImpl
- See Also:
-
getNodeType
public short getNodeType()- Specified by:
getNodeType
in interfaceNode
- Overrides:
getNodeType
in classDOMNodeImpl
- See Also:
-
getDoctype
- Specified by:
getDoctype
in interfaceDocument
- See Also:
-
getImplementation
- Specified by:
getImplementation
in interfaceDocument
- See Also:
- To do:
- DOM level 2 getImplementation() Not implemented. Throws NOT_SUPPORTED_ERR.
-
getDocumentElement
- Specified by:
getDocumentElement
in interfaceDocument
- See Also:
-
createElement
- Specified by:
createElement
in interfaceDocument
- Throws:
DOMException
- See Also:
-
createDocumentFragment
- Specified by:
createDocumentFragment
in interfaceDocument
- See Also:
- To do:
- DOM level 2 createDocumentFragment() Not implemented. Throws NOT_SUPPORTED_ERR.
-
createTextNode
- Specified by:
createTextNode
in interfaceDocument
- See Also:
-
createComment
- Specified by:
createComment
in interfaceDocument
- See Also:
-
createCDATASection
- Specified by:
createCDATASection
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 2 createCDATASection() Not supported. Throws NOT_SUPPORTED_ERR.
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException - Specified by:
createProcessingInstruction
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 2 createProcessingInstruction() Not supported. Throws NOT_SUPPORTED_ERR.
-
createAttribute
- Specified by:
createAttribute
in interfaceDocument
- Throws:
DOMException
- See Also:
-
createEntityReference
- Specified by:
createEntityReference
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 2 createEntityReference() Not supported. Throws NOT_SUPPORTED_ERR.
-
getElementsByTagName
- Specified by:
getElementsByTagName
in interfaceDocument
- See Also:
-
importNode
- Specified by:
importNode
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 2 importNode() Not supported. Throws NOT_SUPPORTED_ERR.
-
createAttributeNS
- Specified by:
createAttributeNS
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 2 createAttributeNS() Not supported. Throws NOT_SUPPORTED_ERR.
-
createElementNS
- Specified by:
createElementNS
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 2 createElementNS() Not supported. Throws NOT_SUPPORTED_ERR.
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNS
in interfaceDocument
- See Also:
- To do:
- DOM level 2 getElementsByTagNameNS() Not supported. Throws NOT_SUPPORTED_ERR.
-
getElementById
- Specified by:
getElementById
in interfaceDocument
- See Also:
- To do:
- DOM level 2 getElementById() Not implemented. Returns null.
-
adoptNode
- Specified by:
adoptNode
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 3 adoptNode() Not implemented.
-
getDocumentURI
- Specified by:
getDocumentURI
in interfaceDocument
- See Also:
- To do:
- DOM level 3 getDocumentURI() Not implemented. Returns null.
-
getDomConfig
- Specified by:
getDomConfig
in interfaceDocument
- See Also:
- To do:
- DOM level 3 getDomConfig() Not implemented. Returns null.
-
getInputEncoding
- Specified by:
getInputEncoding
in interfaceDocument
- See Also:
- To do:
- DOM level 3 getInputEncoding() Not implemented. Returns null.
-
getStrictErrorChecking
public boolean getStrictErrorChecking()- Specified by:
getStrictErrorChecking
in interfaceDocument
- See Also:
- To do:
- DOM level 3 getStrictErrorChecking() Not implemented. Returns true.
-
getXmlEncoding
- Specified by:
getXmlEncoding
in interfaceDocument
- See Also:
- To do:
- DOM level 3 getXmlEncoding() Not implemented. Returns null.
-
getXmlStandalone
public boolean getXmlStandalone()- Specified by:
getXmlStandalone
in interfaceDocument
- See Also:
- To do:
- DOM level 3 getXmlStandalone() Not implemented. Returns false.
-
getXmlVersion
- Specified by:
getXmlVersion
in interfaceDocument
- See Also:
- To do:
- DOM level 3 getXmlVersion() Not implemented. Always returns "1.0".
-
normalizeDocument
public void normalizeDocument()- Specified by:
normalizeDocument
in interfaceDocument
- See Also:
- To do:
- DOM level 3 normalizeDocument() Not implemented. Do nothing.
-
renameNode
- Specified by:
renameNode
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 3 renameNode() Not implemented. Throws NOT_SUPPORTED_ERR.
-
setDocumentURI
- Specified by:
setDocumentURI
in interfaceDocument
- See Also:
- To do:
- DOM level 3 setDocumentURI() Not implemented. Do nothing.
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking) - Specified by:
setStrictErrorChecking
in interfaceDocument
- See Also:
- To do:
- DOM level 3 setStrictErrorChecking() Not implemented. Do nothing.
-
setXmlStandalone
- Specified by:
setXmlStandalone
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 3 setXmlStandalone() Not implemented. Do nothing.
-
setXmlVersion
- Specified by:
setXmlVersion
in interfaceDocument
- Throws:
DOMException
- See Also:
- To do:
- DOM level 3 setXmlVersion() Not implemented. Do nothing.
-