public class Element extends Node
Node.NodeType| Modifier and Type | Field and Description |
|---|---|
protected boolean |
selfClosed |
protected boolean |
voidElement |
attributes, childElementNodes, childElementNodesCount, childNodes, deepLevel, nodeName, nodeRawName, nodeType, nodeValue, offset, ownerDocument, parentNode, position, siblingElementIndex, siblingIndex, siblingNameIndex| Constructor and Description |
|---|
Element(Document ownerDocument,
java.lang.String name) |
Element(Document ownerDocument,
java.lang.String name,
boolean voidElement,
boolean selfClosed) |
Element(Document ownerNode,
Tag tag,
boolean voidElement,
boolean selfClosed) |
| Modifier and Type | Method and Description |
|---|---|
Element |
clone() |
boolean |
isSelfClosed()
Returns
true if element can self-close itself when empty. |
boolean |
isVoidElement()
Returns
true if element is void. |
void |
toHtml(java.lang.Appendable appendable)
Generates HTML by appending it to the provided
Appendable. |
java.lang.String |
toString() |
addChild, addChild, appendTextContent, changeOwnerDocument, check, cloneTo, detachFromParent, getAttribute, getAttribute, getAttributeInstance, getAttributesCount, getChild, getChild, getChildElement, getChildElements, getChildElementsCount, getChildElementsCount, getChildNodes, getChildNodesCount, getCssPath, getDeepLevel, getFirstChild, getFirstChildElement, getFirstChildElement, getHtml, getInnerHtml, getLastChild, getLastChildElement, getLastChildElement, getNextSibling, getNextSiblingElement, getNextSiblingName, getNodeName, getNodeRawName, getNodeType, getNodeValue, getOffset, getOwnerDocument, getParentNode, getPosition, getPositionString, getPreviousSibling, getPreviousSiblingElement, getPreviousSiblingName, getSiblingElementIndex, getSiblingIndex, getSiblingNameIndex, getTextContent, hasAttribute, hasAttributes, hasChildNodes, indexOfAttributeInstance, initAttributes, initChildElementNodes, initChildNodes, initSiblingNames, insertAfter, insertAfter, insertBefore, insertChild, insertChild, isAttributeIncluding, reindexChildren, reindexChildrenOnAdd, removeAllChilds, removeAttribute, removeChild, removeChild, setAttribute, setAttribute, setNodeValue, toInnerHtmlprotected final boolean voidElement
protected final boolean selfClosed
public Element(Document ownerDocument, java.lang.String name)
public Element(Document ownerDocument, java.lang.String name, boolean voidElement, boolean selfClosed)
public boolean isVoidElement()
true if element is void.public boolean isSelfClosed()
true if element can self-close itself when empty.public void toHtml(java.lang.Appendable appendable)
throws java.io.IOException
NodeAppendable.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2003-2013 Jodd Team