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 |
|---|---|
void |
appendTextContent(java.lang.Appendable appendable)
Appends the text content to
Appendable. |
Text |
clone() |
java.lang.String |
getTextContent()
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 |
setTextContent(java.lang.String text)
Sets HTML text, but decodes it first.
|
protected void |
visitNode(NodeVisitor nodeVisitor)
Visits single node.
|
addChild, addChild, changeOwnerDocument, check, cloneTo, detachFromParent, 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, 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 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 Nodeprotected void visitNode(NodeVisitor nodeVisitor)
NodeCopyright © 2003-2013 Jodd Team