Package jodd.lagarto.dom
Class Element
- java.lang.Object
-
- jodd.lagarto.dom.Node
-
- jodd.lagarto.dom.Element
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Element extends Node
Tag node.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jodd.lagarto.dom.Node
Node.NodeType
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanrawTagprotected booleanselfClosedprotected booleanvoidElement-
Fields inherited from class jodd.lagarto.dom.Node
attributes, childElementNodes, childElementNodesCount, childNodes, nodeName, nodeRawName, nodeType, nodeValue, ownerDocument, parentNode, siblingElementIndex, siblingIndex, siblingNameIndex
-
-
Constructor Summary
Constructors Constructor Description Element(Document ownerDocument, java.lang.String name)Element(Document ownerDocument, java.lang.String name, boolean voidElement, boolean selfClosed, boolean rawTag)Element(Document ownerNode, Tag tag, boolean voidElement, boolean selfClosed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Elementclone()booleanisRawTag()Returnstrueif tags content is RAW text.booleanisSelfClosed()Returnstrueif element can self-close itself when empty.booleanisVoidElement()Returnstrueif element is void.java.lang.StringtoString()protected voidvisitNode(NodeVisitor nodeVisitor)Visits single node.-
Methods inherited from class jodd.lagarto.dom.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
-
-
-
-
Method Detail
-
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
protected void visitNode(NodeVisitor nodeVisitor)
Description copied from class:NodeVisits single node. Implementations just needs to call the correct visitor callback function.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-