org.thymeleaf.dom
Class Text
Object
org.thymeleaf.dom.Node
org.thymeleaf.dom.AbstractTextNode
org.thymeleaf.dom.Text
- All Implemented Interfaces:
- Serializable
public final class Text
- extends AbstractTextNode
A Text node in a Thymeleaf DOM tree.
When building an instance of this class, setting the escapeXml flag to true
will apply an escaping operation to the specified contents by means of calling
DOMUtils.escapeXml(char[], boolean)
.
- Since:
- 2.0.0
- Author:
- Daniel Fernández
- See Also:
- Serialized Form
Constructor Summary |
Text(char[] content)
|
Text(char[] content,
boolean escapeXml)
|
Text(char[] content,
boolean escapeXml,
String documentName)
|
Text(char[] content,
boolean escapeXml,
String documentName,
Integer lineNumber)
|
Text(String content)
|
Text(String content,
boolean escapeXml)
|
Text(String content,
boolean escapeXml,
String documentName)
|
Text(String content,
boolean escapeXml,
String documentName,
Integer lineNumber)
|
Methods inherited from class org.thymeleaf.dom.Node |
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, unsafeSetSkippable |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Text
public Text(String content)
Text
public Text(char[] content)
Text
public Text(String content,
boolean escapeXml)
Text
public Text(char[] content,
boolean escapeXml)
Text
public Text(String content,
boolean escapeXml,
String documentName)
Text
public Text(char[] content,
boolean escapeXml,
String documentName)
Text
public Text(String content,
boolean escapeXml,
String documentName,
Integer lineNumber)
Text
public Text(char[] content,
boolean escapeXml,
String documentName,
Integer lineNumber)
visit
public void visit(DOMVisitor visitor)
- Description copied from class:
Node
Apply a DOM visitor.
- Specified by:
visit
in class Node
- Parameters:
visitor
- the visitor to be executed for this node.
Copyright © 2014 The THYMELEAF team. All Rights Reserved.