Class Document
java.lang.Object
jodd.lagarto.dom.Node
jodd.lagarto.dom.Document
- All Implemented Interfaces:
Cloneable
Document node is always a root node.
Holds various DOM-related configuration and information.
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.NodeType -
Field Summary
FieldsFields inherited from class Node
attributes, childElementNodes, childElementNodesCount, childNodes, nodeName, nodeRawName, nodeType, nodeValue, ownerDocument, parentNode, siblingElementIndex, siblingIndex, siblingNameIndex -
Constructor Summary
ConstructorsConstructorDescriptionDocument()Document(LagartoDomBuilderConfig config) Document constructor with all relevant flags. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd new error message to theerrors list.clone()protected voidend()Notifies document that parsing is done.Returns usedLagartoDomBuilderConfig.longReturns DOM building elapsed time.Returns list of warnings and errors occurred during parsing.voidsetAttribute(String name, String value) Document node does not have attributes.protected voidvisitNode(NodeVisitor nodeVisitor) Visits single node.Methods inherited from class 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
-
Field Details
-
elapsedTime
protected long elapsedTime -
config
-
errors
-
-
Constructor Details
-
Document
public Document() -
Document
Document constructor with all relevant flags.
-
-
Method Details
-
clone
-
end
protected void end()Notifies document that parsing is done. -
visitNode
Description copied from class:NodeVisits single node. Implementations just needs to call the correct visitor callback function. -
addError
Add new error message to theerrors list. If errors are not collected error, message is ignored. -
getErrors
-
setAttribute
Document node does not have attributes.- Overrides:
setAttributein classNode
-
getElapsedTime
public long getElapsedTime()Returns DOM building elapsed time. -
getConfig
Returns usedLagartoDomBuilderConfig.
-