org.thymeleaf.dom
Class Comment

Object
  extended by org.thymeleaf.dom.Node
      extended by org.thymeleaf.dom.Comment
All Implemented Interfaces:
Serializable

public final class Comment
extends Node

A Comment node in a Thymeleaf DOM tree.

Since:
2.0.0
Author:
Daniel Fernández
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.thymeleaf.dom.Node
Node.NodeLocalVariablesMap
 
Field Summary
 
Fields inherited from class org.thymeleaf.dom.Node
NODE_PROPERTY_XML_ENCODING, NODE_PROPERTY_XML_STANDALONE, NODE_PROPERTY_XML_VERSION
 
Constructor Summary
Comment(String content)
           
Comment(String content, String documentName)
           
Comment(String content, String documentName, Integer lineNumber)
           
 
Method Summary
 String getContent()
           Returns the textual content of this node, as a String.
 void setContent(String content)
           Modify the textual content of this node.
 void visit(DOMVisitor visitor)
           Apply a DOM visitor.
 
Methods inherited from class org.thymeleaf.dom.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
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment(String content)

Comment

public Comment(String content,
               String documentName)

Comment

public Comment(String content,
               String documentName,
               Integer lineNumber)
Method Detail

getContent

public String getContent()

Returns the textual content of this node, as a String.

Returns:
the textual content of this node.

setContent

public void setContent(String content)

Modify the textual content of this node.

Parameters:
content - the new content
Since:
2.0.15

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 © 2013 The THYMELEAF team. All Rights Reserved.