Package org.w3c.tidy
Class DOMDocumentImpl
- java.lang.Object
-
- org.w3c.tidy.DOMNodeImpl
-
- org.w3c.tidy.DOMDocumentImpl
-
- All Implemented Interfaces:
org.w3c.dom.Document,org.w3c.dom.Node
public class DOMDocumentImpl extends DOMNodeImpl implements org.w3c.dom.Document
DOMDocumentImpl.- Version:
- $Revision$ ($Author$)
- 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
Constructors Modifier Constructor Description protectedDOMDocumentImpl(Node adaptee)Instantiates a new Dom document with a default tag table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodeadoptNode(org.w3c.dom.Node source)TODO DOM level 3 adoptNode() Not implemented.org.w3c.dom.AttrcreateAttribute(java.lang.String name)org.w3c.dom.AttrcreateAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)TODO DOM level 2 createAttributeNS() Not supported.org.w3c.dom.CDATASectioncreateCDATASection(java.lang.String data)TODO DOM level 2 createCDATASection() Not supported.org.w3c.dom.CommentcreateComment(java.lang.String data)org.w3c.dom.DocumentFragmentcreateDocumentFragment()TODO DOM level 2 createDocumentFragment() Not implemented.org.w3c.dom.ElementcreateElement(java.lang.String tagName)org.w3c.dom.ElementcreateElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)TODO DOM level 2 createElementNS() Not supported.org.w3c.dom.EntityReferencecreateEntityReference(java.lang.String name)TODO DOM level 2 createEntityReference() Not supported.org.w3c.dom.ProcessingInstructioncreateProcessingInstruction(java.lang.String target, java.lang.String data)TODO DOM level 2 createProcessingInstruction() Not supported.org.w3c.dom.TextcreateTextNode(java.lang.String data)org.w3c.dom.DocumentTypegetDoctype()org.w3c.dom.ElementgetDocumentElement()java.lang.StringgetDocumentURI()TODO DOM level 3 getDocumentURI() Not implemented.org.w3c.dom.DOMConfigurationgetDomConfig()TODO DOM level 3 getDomConfig() Not implemented.org.w3c.dom.ElementgetElementById(java.lang.String elementId)TODO DOM level 2 getElementById() Not implemented.org.w3c.dom.NodeListgetElementsByTagName(java.lang.String tagname)org.w3c.dom.NodeListgetElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)TODO DOM level 2 getElementsByTagNameNS() Not supported.org.w3c.dom.DOMImplementationgetImplementation()TODO DOM level 2 getImplementation() Not implemented.java.lang.StringgetInputEncoding()TODO DOM level 3 getInputEncoding() Not implemented.java.lang.StringgetNodeName()shortgetNodeType()booleangetStrictErrorChecking()TODO DOM level 3 getStrictErrorChecking() Not implemented.java.lang.StringgetXmlEncoding()TODO DOM level 3 getXmlEncoding() Not implemented.booleangetXmlStandalone()TODO DOM level 3 getXmlStandalone() Not implemented.java.lang.StringgetXmlVersion()TODO DOM level 3 getXmlVersion() Not implemented.org.w3c.dom.NodeimportNode(org.w3c.dom.Node importedNode, boolean deep)TODO DOM level 2 importNode() Not supported.voidnormalizeDocument()TODO DOM level 3 normalizeDocument() Not implemented.org.w3c.dom.NoderenameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String qualifiedName)TODO DOM level 3 renameNode() Not implemented.voidsetDocumentURI(java.lang.String documentURI)TODO DOM level 3 setDocumentURI() Not implemented.voidsetStrictErrorChecking(boolean strictErrorChecking)TODO DOM level 3 setStrictErrorChecking() Not implemented.voidsetXmlStandalone(boolean xmlStandalone)TODO DOM level 3 setXmlStandalone() Not implemented.voidsetXmlVersion(java.lang.String xmlVersion)TODO DOM level 3 setXmlVersion() Not implemented.-
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 Detail
-
DOMDocumentImpl
protected DOMDocumentImpl(Node adaptee)
Instantiates a new Dom document with a default tag table.- Parameters:
adaptee- tidy Node
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
- Specified by:
getNodeNamein interfaceorg.w3c.dom.Node- Overrides:
getNodeNamein classDOMNodeImpl- See Also:
Node.getNodeName()
-
getNodeType
public short getNodeType()
- Specified by:
getNodeTypein interfaceorg.w3c.dom.Node- Overrides:
getNodeTypein classDOMNodeImpl- See Also:
Node.getNodeType()
-
getDoctype
public org.w3c.dom.DocumentType getDoctype()
- Specified by:
getDoctypein interfaceorg.w3c.dom.Document- See Also:
Document.getDoctype()
-
getImplementation
public org.w3c.dom.DOMImplementation getImplementation()
TODO DOM level 2 getImplementation() Not implemented. Throws NOT_SUPPORTED_ERR.- Specified by:
getImplementationin interfaceorg.w3c.dom.Document- See Also:
Document.getImplementation()
-
getDocumentElement
public org.w3c.dom.Element getDocumentElement()
- Specified by:
getDocumentElementin interfaceorg.w3c.dom.Document- See Also:
Document.getDocumentElement()
-
createElement
public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException- Specified by:
createElementin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.createElement(java.lang.String)
-
createDocumentFragment
public org.w3c.dom.DocumentFragment createDocumentFragment()
TODO DOM level 2 createDocumentFragment() Not implemented. Throws NOT_SUPPORTED_ERR.- Specified by:
createDocumentFragmentin interfaceorg.w3c.dom.Document- See Also:
Document.createDocumentFragment()
-
createTextNode
public org.w3c.dom.Text createTextNode(java.lang.String data)
- Specified by:
createTextNodein interfaceorg.w3c.dom.Document- See Also:
Document.createTextNode(java.lang.String)
-
createComment
public org.w3c.dom.Comment createComment(java.lang.String data)
- Specified by:
createCommentin interfaceorg.w3c.dom.Document- See Also:
Document.createComment(java.lang.String)
-
createCDATASection
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data) throws org.w3c.dom.DOMExceptionTODO DOM level 2 createCDATASection() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
createCDATASectionin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.createCDATASection(java.lang.String)
-
createProcessingInstruction
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws org.w3c.dom.DOMExceptionTODO DOM level 2 createProcessingInstruction() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
createProcessingInstructionin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.createProcessingInstruction(java.lang.String, java.lang.String)
-
createAttribute
public org.w3c.dom.Attr createAttribute(java.lang.String name) throws org.w3c.dom.DOMException- Specified by:
createAttributein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.createAttribute(java.lang.String)
-
createEntityReference
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name) throws org.w3c.dom.DOMExceptionTODO DOM level 2 createEntityReference() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
createEntityReferencein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.createEntityReference(java.lang.String)
-
getElementsByTagName
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
- Specified by:
getElementsByTagNamein interfaceorg.w3c.dom.Document- See Also:
Document.getElementsByTagName(java.lang.String)
-
importNode
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws org.w3c.dom.DOMExceptionTODO DOM level 2 importNode() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
importNodein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.importNode(org.w3c.dom.Node, boolean)
-
createAttributeNS
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMExceptionTODO DOM level 2 createAttributeNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
createAttributeNSin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.createAttributeNS(java.lang.String, java.lang.String)
-
createElementNS
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMExceptionTODO DOM level 2 createElementNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
createElementNSin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.createElementNS(java.lang.String, java.lang.String)
-
getElementsByTagNameNS
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)TODO DOM level 2 getElementsByTagNameNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
getElementsByTagNameNSin interfaceorg.w3c.dom.Document- See Also:
Document.getElementsByTagNameNS(java.lang.String, java.lang.String)
-
getElementById
public org.w3c.dom.Element getElementById(java.lang.String elementId)
TODO DOM level 2 getElementById() Not implemented. Returns null.- Specified by:
getElementByIdin interfaceorg.w3c.dom.Document- See Also:
Document.getElementById(java.lang.String)
-
adoptNode
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws org.w3c.dom.DOMExceptionTODO DOM level 3 adoptNode() Not implemented.- Specified by:
adoptNodein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.adoptNode(org.w3c.dom.Node)
-
getDocumentURI
public java.lang.String getDocumentURI()
TODO DOM level 3 getDocumentURI() Not implemented. Returns null.- Specified by:
getDocumentURIin interfaceorg.w3c.dom.Document- See Also:
Document.getDocumentURI()
-
getDomConfig
public org.w3c.dom.DOMConfiguration getDomConfig()
TODO DOM level 3 getDomConfig() Not implemented. Returns null.- Specified by:
getDomConfigin interfaceorg.w3c.dom.Document- See Also:
Document.getDomConfig()
-
getInputEncoding
public java.lang.String getInputEncoding()
TODO DOM level 3 getInputEncoding() Not implemented. Returns null.- Specified by:
getInputEncodingin interfaceorg.w3c.dom.Document- See Also:
Document.getInputEncoding()
-
getStrictErrorChecking
public boolean getStrictErrorChecking()
TODO DOM level 3 getStrictErrorChecking() Not implemented. Returns true.- Specified by:
getStrictErrorCheckingin interfaceorg.w3c.dom.Document- See Also:
Document.getStrictErrorChecking()
-
getXmlEncoding
public java.lang.String getXmlEncoding()
TODO DOM level 3 getXmlEncoding() Not implemented. Returns null.- Specified by:
getXmlEncodingin interfaceorg.w3c.dom.Document- See Also:
Document.getXmlEncoding()
-
getXmlStandalone
public boolean getXmlStandalone()
TODO DOM level 3 getXmlStandalone() Not implemented. Returns false.- Specified by:
getXmlStandalonein interfaceorg.w3c.dom.Document- See Also:
Document.getXmlStandalone()
-
getXmlVersion
public java.lang.String getXmlVersion()
TODO DOM level 3 getXmlVersion() Not implemented. Always returns "1.0".- Specified by:
getXmlVersionin interfaceorg.w3c.dom.Document- See Also:
Document.getXmlVersion()
-
normalizeDocument
public void normalizeDocument()
TODO DOM level 3 normalizeDocument() Not implemented. Do nothing.- Specified by:
normalizeDocumentin interfaceorg.w3c.dom.Document- See Also:
Document.normalizeDocument()
-
renameNode
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMExceptionTODO DOM level 3 renameNode() Not implemented. Throws NOT_SUPPORTED_ERR.- Specified by:
renameNodein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.renameNode(org.w3c.dom.Node, java.lang.String, java.lang.String)
-
setDocumentURI
public void setDocumentURI(java.lang.String documentURI)
TODO DOM level 3 setDocumentURI() Not implemented. Do nothing.- Specified by:
setDocumentURIin interfaceorg.w3c.dom.Document- See Also:
Document.setDocumentURI(java.lang.String)
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
TODO DOM level 3 setStrictErrorChecking() Not implemented. Do nothing.- Specified by:
setStrictErrorCheckingin interfaceorg.w3c.dom.Document- See Also:
Document.setStrictErrorChecking(boolean)
-
setXmlStandalone
public void setXmlStandalone(boolean xmlStandalone) throws org.w3c.dom.DOMExceptionTODO DOM level 3 setXmlStandalone() Not implemented. Do nothing.- Specified by:
setXmlStandalonein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.setXmlStandalone(boolean)
-
setXmlVersion
public void setXmlVersion(java.lang.String xmlVersion) throws org.w3c.dom.DOMExceptionTODO DOM level 3 setXmlVersion() Not implemented. Do nothing.- Specified by:
setXmlVersionin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException- See Also:
Document.setXmlVersion(java.lang.String)
-
-