Class Element
java.lang.Object
jodd.lagarto.dom.Node
jodd.lagarto.dom.Element
- All Implemented Interfaces:
Cloneable
Tag node.
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.NodeType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected final booleanFields inherited from class Node
attributes, childElementNodes, childElementNodesCount, childNodes, nodeName, nodeRawName, nodeType, nodeValue, ownerDocument, parentNode, siblingElementIndex, siblingIndex, siblingNameIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanisRawTag()Returnstrueif tags content is RAW text.booleanReturnstrueif element can self-close itself when empty.booleanReturnstrueif element is void.toString()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, setAttribute, setNodeValue, visit, visitChildren
-
Field Details
-
voidElement
protected final boolean voidElement -
selfClosed
protected final boolean selfClosed -
rawTag
protected final boolean rawTag
-
-
Constructor Details
-
Element
-
Element
-
Element
-
-
Method Details
-
clone
-
isVoidElement
public boolean isVoidElement()Returnstrueif element is void. -
isSelfClosed
public boolean isSelfClosed()Returnstrueif element can self-close itself when empty. -
isRawTag
public boolean isRawTag()Returnstrueif tags content is RAW text. -
visitNode
Description copied from class:NodeVisits single node. Implementations just needs to call the correct visitor callback function. -
toString
-