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