public abstract class AbstractTextNode extends Node
Base abstract class for text-based node types in Thymeleaf DOM trees:
Text
s and CDATASection
s.
Node.NodeLocalVariablesMap
NODE_PROPERTY_XML_ENCODING, NODE_PROPERTY_XML_STANDALONE, NODE_PROPERTY_XML_VERSION
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Returns the textual content of this node, as a String.
|
String |
getEscapedContent()
Returns the textual and escaped content of this node, as a String.
|
String |
getOriginalContent()
Returns the original content of this node (escaped or not), as a String.
|
void |
setContent(String content)
Modify the textual content of this node.
|
void |
setContent(String content,
boolean contentIsEscaped)
Modify the textual content of this node.
|
addAllNonExistingNodeLocalVariables, applyDialectPrefix, cloneNode, getDocumentName, getLineNumber, getNodeLocalVariableNames, getNodeProperty, getNodePropertyNames, getParent, getProcessCommentNodes, getProcessTextNodes, getRecomputeProcessorsAfterEachExecution, getRecomputeProcessorsImmediately, hasNodeLocalVariables, hasNodeProperty, hasParent, isProcessable, isSkippable, normalizeName, setAllNodeLocalVariables, setNodeLocalVariable, setNodeProperty, setParent, setProcessable, setProcessCommentNodes, setProcessTextNodes, setRecomputeProcessorsAfterEachExecution, setRecomputeProcessorsImmediately, setSkippable, unsafeGetNodeProperties, visit
public String getContent()
Returns the textual content of this node, as a String.
public String getEscapedContent()
Returns the textual and escaped content of this node, as a String.
public String getOriginalContent()
Returns the original content of this node (escaped or not), as a String.
public void setContent(String content)
Modify the textual content of this node.
content
- the new contentpublic void setContent(String content, boolean contentIsEscaped)
Modify the textual content of this node.
content
- the new contentcontentIsEscaped
- whether the specified content is already escaped or notCopyright © 2016 The THYMELEAF team. All rights reserved.