public class Document extends Node
Node.NodeType
Modifier and Type | Field and Description |
---|---|
protected LagartoDomBuilderConfig |
config |
protected long |
elapsedTime |
protected java.util.List<java.lang.String> |
errors |
attributes, childElementNodes, childElementNodesCount, childNodes, nodeName, nodeRawName, nodeType, nodeValue, ownerDocument, parentNode, siblingElementIndex, siblingIndex, siblingNameIndex
Constructor and Description |
---|
Document() |
Document(LagartoDomBuilderConfig config)
Document constructor with all relevant flags.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(java.lang.String message)
Add new error message to the
errors list . |
Document |
clone() |
protected void |
end()
Notifies document that parsing is done.
|
LagartoDomBuilderConfig |
getConfig()
Returns used
LagartoDomBuilderConfig . |
long |
getElapsedTime()
Returns DOM building elapsed time.
|
java.util.List<java.lang.String> |
getErrors()
Returns list of warnings and errors occurred during parsing.
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
Document node does not have attributes.
|
protected void |
visitNode(NodeVisitor nodeVisitor)
Visits single node.
|
addChild, addChild, appendTextContent, changeOwnerDocument, check, cloneTo, detachFromParent, filterChildNodes, findChildNodeWithName, getAttribute, getAttribute, getAttributeInstance, getAttributesCount, getChild, getChild, getChildElement, getChildElements, getChildElementsCount, getChildElementsCount, getChildNodes, getChildNodesCount, getCssPath, getFirstChild, getFirstChildElement, getFirstChildElement, getHtml, getInnerHtml, getLastChild, getLastChildElement, getLastChildElement, getNextSibling, getNextSiblingElement, getNextSiblingName, getNodeName, getNodeRawName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getPreviousSiblingElement, getPreviousSiblingName, getSiblingElementIndex, getSiblingIndex, getSiblingNameIndex, getTextContent, hasAttribute, hasAttributes, hasChildNodes, indexOfAttributeInstance, initAttributes, initChildElementNodes, initChildNodes, initSiblingNames, insertAfter, insertAfter, insertBefore, insertBefore, insertChild, insertChild, isAttributeContaining, reindexChildren, reindexChildrenOnAdd, removeAllChilds, removeAttribute, removeChild, removeChild, setAttribute, setNodeValue, visit, visitChildren
protected long elapsedTime
protected final LagartoDomBuilderConfig config
protected java.util.List<java.lang.String> errors
public Document()
public Document(LagartoDomBuilderConfig config)
protected void end()
protected void visitNode(NodeVisitor nodeVisitor)
Node
public void addError(java.lang.String message)
errors list
.
If errors are not collected error, message is ignored.public java.util.List<java.lang.String> getErrors()
null
if parsing was successful; or if
errors are not collected.public void setAttribute(java.lang.String name, java.lang.String value)
setAttribute
in class Node
public long getElapsedTime()
public LagartoDomBuilderConfig getConfig()
LagartoDomBuilderConfig
.Copyright © 2003-present Jodd Team