public class Element extends Node
Node.NodeType| Modifier and Type | Field and Description |
|---|---|
protected boolean |
rawTag |
protected boolean |
selfClosed |
protected boolean |
voidElement |
attributes, childElementNodes, childElementNodesCount, childNodes, nodeName, nodeRawName, nodeType, nodeValue, ownerDocument, parentNode, siblingElementIndex, siblingIndex, siblingNameIndex| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
Element |
clone() |
boolean |
isRawTag()
Returns
true if tags content is RAW text. |
boolean |
isSelfClosed()
Returns
true if element can self-close itself when empty. |
boolean |
isVoidElement()
Returns
true if element is void. |
java.lang.String |
toString() |
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, setAttribute, setNodeValue, visit, visitChildrenprotected final boolean voidElement
protected final boolean selfClosed
protected final boolean rawTag
public Element(Document ownerDocument, java.lang.String name)
public Element(Document ownerDocument, java.lang.String name, boolean voidElement, boolean selfClosed, boolean rawTag)
public boolean isVoidElement()
true if element is void.public boolean isSelfClosed()
true if element can self-close itself when empty.public boolean isRawTag()
true if tags content is RAW text.protected void visitNode(NodeVisitor nodeVisitor)
Nodepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2003-present Jodd Team