class DOMTreeBuilder extends CoalescingTreeBuilder<org.w3c.dom.Element>
| Modifier and Type | Field and Description |
|---|---|
private org.w3c.dom.Document |
document
The current doc.
|
private org.w3c.dom.DOMImplementation |
implementation
The DOM impl.
|
charBuffer, charBufferLen, errorHandler, tokenizer| Modifier | Constructor and Description |
|---|---|
protected |
DOMTreeBuilder(org.w3c.dom.DOMImplementation implementation)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributesToElement(org.w3c.dom.Element element,
HtmlAttributes attributes) |
protected void |
appendCharacters(org.w3c.dom.Element parent,
java.lang.String text) |
protected void |
appendChildrenToNewParent(org.w3c.dom.Element oldParent,
org.w3c.dom.Element newParent) |
protected void |
appendComment(org.w3c.dom.Element parent,
java.lang.String comment) |
protected void |
appendCommentToDocument(java.lang.String comment) |
protected void |
appendElement(org.w3c.dom.Element child,
org.w3c.dom.Element newParent) |
protected org.w3c.dom.Element |
createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes) |
protected org.w3c.dom.Element |
createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes,
org.w3c.dom.Element form) |
protected org.w3c.dom.Element |
createHtmlElementSetAsRoot(HtmlAttributes attributes) |
protected void |
detachFromParent(org.w3c.dom.Element element) |
protected void |
documentMode(DocumentMode mode,
java.lang.String publicIdentifier,
java.lang.String systemIdentifier,
boolean html4SpecificAdditionalErrorChecks) |
(package private) org.w3c.dom.Document |
getDocument()
Returns the document.
|
(package private) org.w3c.dom.DocumentFragment |
getDocumentFragment()
Return the document fragment.
|
protected boolean |
hasChildren(org.w3c.dom.Element element) |
protected void |
insertFosterParentedCharacters(java.lang.String text,
org.w3c.dom.Element table,
org.w3c.dom.Element stackParent) |
protected void |
insertFosterParentedChild(org.w3c.dom.Element child,
org.w3c.dom.Element table,
org.w3c.dom.Element stackParent) |
protected void |
start(boolean fragment) |
accumulateCharacters, appendCharacters, appendComment, appendCommentToDocument, appendIsindexPrompt, insertFosterParentedCharactersappendDoctypeToDocument, cdataSectionAllowed, characters, comment, currentNode, doctype, elementPopped, elementPushed, end, endTag, endTokenization, eof, extractCharsetFromContent, fatal, fatal, flushCharacters, getDeepTreeSurrogateParent, getErrorHandler, getFormPointer, getHeadPointer, getListOfActiveFormattingElements, getListOfActiveFormattingElementsLength, getMode, getOriginalMode, getStack, getStackLength, isFramesetOk, isNeedToDropLF, isQuirks, isScriptingEnabled, loadState, markMalformedIfScript, newSnapshot, requestSuspension, setDoctypeExpectation, setDocumentModeHandler, setErrorHandler, setFragmentContext, setFragmentContext, setIgnoringComments, setNamePolicy, setReportingDoctype, setScriptingEnabled, snapshotMatches, startTag, startTokenization, wantsComments, zeroOriginatingReplacementCharacterprivate org.w3c.dom.DOMImplementation implementation
private org.w3c.dom.Document document
protected DOMTreeBuilder(org.w3c.dom.DOMImplementation implementation)
implementation - the DOM impl.protected void addAttributesToElement(org.w3c.dom.Element element,
HtmlAttributes attributes)
throws org.xml.sax.SAXException
addAttributesToElement in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionTreeBuilder.addAttributesToElement(java.lang.Object,
nu.validator.htmlparser.impl.HtmlAttributes)protected void appendCharacters(org.w3c.dom.Element parent,
java.lang.String text)
throws org.xml.sax.SAXException
appendCharacters in class CoalescingTreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionCoalescingTreeBuilder.appendCharacters(java.lang.Object,
java.lang.String)protected void appendChildrenToNewParent(org.w3c.dom.Element oldParent,
org.w3c.dom.Element newParent)
throws org.xml.sax.SAXException
appendChildrenToNewParent in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionTreeBuilder.appendChildrenToNewParent(java.lang.Object,
java.lang.Object)protected void appendComment(org.w3c.dom.Element parent,
java.lang.String comment)
throws org.xml.sax.SAXException
appendComment in class CoalescingTreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionCoalescingTreeBuilder.appendComment(java.lang.Object,
java.lang.String)protected void appendCommentToDocument(java.lang.String comment)
throws org.xml.sax.SAXException
appendCommentToDocument in class CoalescingTreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionCoalescingTreeBuilder.appendCommentToDocument(java.lang.String)protected org.w3c.dom.Element createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes)
throws org.xml.sax.SAXException
createElement in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionTreeBuilder.createElement(java.lang.String,
java.lang.String, nu.validator.htmlparser.impl.HtmlAttributes)protected org.w3c.dom.Element createHtmlElementSetAsRoot(HtmlAttributes attributes) throws org.xml.sax.SAXException
createHtmlElementSetAsRoot in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionTreeBuilder.createHtmlElementSetAsRoot(nu.validator.htmlparser.impl.HtmlAttributes)protected void appendElement(org.w3c.dom.Element child,
org.w3c.dom.Element newParent)
throws org.xml.sax.SAXException
appendElement in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionTreeBuilder.appendElement(java.lang.Object,
java.lang.Object)protected boolean hasChildren(org.w3c.dom.Element element)
throws org.xml.sax.SAXException
hasChildren in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionTreeBuilder.hasChildren(java.lang.Object)protected org.w3c.dom.Element createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes,
org.w3c.dom.Element form)
throws org.xml.sax.SAXException
createElement in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionnu.validator.htmlparser.impl.TreeBuilder#createElement(String,
java.lang.String, org.xml.sax.Attributes, java.lang.Object)protected void start(boolean fragment)
throws org.xml.sax.SAXException
start in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionnu.validator.htmlparser.impl.TreeBuilder#start()protected void documentMode(DocumentMode mode, java.lang.String publicIdentifier, java.lang.String systemIdentifier, boolean html4SpecificAdditionalErrorChecks) throws org.xml.sax.SAXException
documentMode in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionTreeBuilder.documentMode(nu.validator.htmlparser.common.DocumentMode,
java.lang.String, java.lang.String, boolean)org.w3c.dom.Document getDocument()
org.w3c.dom.DocumentFragment getDocumentFragment()
protected void insertFosterParentedCharacters(java.lang.String text,
org.w3c.dom.Element table,
org.w3c.dom.Element stackParent)
throws org.xml.sax.SAXException
insertFosterParentedCharacters in class CoalescingTreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionprotected void insertFosterParentedChild(org.w3c.dom.Element child,
org.w3c.dom.Element table,
org.w3c.dom.Element stackParent)
throws org.xml.sax.SAXException
insertFosterParentedChild in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXExceptionprotected void detachFromParent(org.w3c.dom.Element element)
throws org.xml.sax.SAXException
detachFromParent in class TreeBuilder<org.w3c.dom.Element>org.xml.sax.SAXException