public class Text extends Node
Node.NodeType| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Boolean |
blank |
attributes, childElementNodes, childElementNodesCount, childNodes, deepLevel, nodeName, nodeRawName, nodeType, nodeValue, offset, ownerDocument, parentNode, position, siblingElementIndex, siblingIndex, siblingNameIndex| Constructor and Description |
|---|
Text(Document ownerDocument,
java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTextContent(java.lang.Appendable appendable)
Appends the text content to
Appendable. |
Text |
clone() |
java.lang.String |
getTextContent()
Returns decoded HTML text.
|
boolean |
isBlank()
Returns
true if text content is blank. |
void |
setTextContent(java.lang.String text)
Sets HTML text, but encodes it first.
|
void |
setTextStrict(java.lang.String text)
Sets HTML text, but encodes it first.
|
void |
toHtml(java.lang.Appendable appendable)
Generates HTML by appending it to the provided
Appendable. |
addChild, addChild, 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, hasAttribute, hasAttributes, hasChildNodes, indexOfAttributeInstance, initAttributes, initChildElementNodes, initChildNodes, initSiblingNames, insertAfter, insertAfter, insertBefore, insertChild, insertChild, isAttributeIncluding, reindexChildren, reindexChildrenOnAdd, removeAllChilds, removeAttribute, removeChild, removeChild, setAttribute, setAttribute, setNodeValue, toInnerHtmlpublic Text(Document ownerDocument, java.lang.String text)
public boolean isBlank()
true if text content is blank.public void setTextContent(java.lang.String text)
public java.lang.String getTextContent()
getTextContent in class NodeNode.appendTextContent(Appendable)public void appendTextContent(java.lang.Appendable appendable)
Appendable.appendTextContent in class Nodepublic void setTextStrict(java.lang.String text)
Copyright © 2003-2013 Jodd Team