public class Text extends Node
Node.NodeType| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Boolean |
blank |
protected java.lang.String |
encodedText |
attributes, childElementNodes, childElementNodesCount, childNodes, nodeName, nodeRawName, nodeType, nodeValue, ownerDocument, parentNode, siblingElementIndex, siblingIndex, siblingNameIndex| Constructor and Description |
|---|
Text(Document ownerDocument,
java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
Text |
clone() |
java.lang.String |
getTextValue()
Returns encoded HTML text.
|
boolean |
isBlank()
Returns
true if text content is blank. |
void |
setNodeValue(java.lang.String value)
Sets the plain text as node value.
|
void |
setTextValue(java.lang.String text)
Sets HTML text, but decodes it first.
|
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, visit, visitChildrenprotected java.lang.String encodedText
protected java.lang.Boolean blank
public Text(Document ownerDocument, java.lang.String text)
public boolean isBlank()
true if text content is blank.public void setNodeValue(java.lang.String value)
setNodeValue in class Nodepublic void setTextValue(java.lang.String text)
public java.lang.String getTextValue()
protected void visitNode(NodeVisitor nodeVisitor)
NodeCopyright © 2003-present Jodd Team