org.thymeleaf.processor.document
Class ProcessAllNodesDocumentProcessor
Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.document.AbstractDocumentProcessor
org.thymeleaf.processor.document.ProcessAllNodesDocumentProcessor
- All Implemented Interfaces:
- Comparable<IProcessor>, IProcessor
public class ProcessAllNodesDocumentProcessor
- extends AbstractDocumentProcessor
Subclass of AbstractDocumentProcessor
used for setting to true the flags
that tell the Thymeleaf engine to process both text (Text,CDATA) and Comment nodes.
By default, only nodes of type Element
are processed in a
document.
This is done by returning a ProcessorResult
instance with its
ProcessorResult.setProcessTextAndCommentNodes(boolean, boolean)
flags set
both to true.
Note that enabling the flag on text nodes does not set an inliner (like e.g. the
"th:inline" attribute does).
- Since:
- 2.0.13
- Author:
- Daniel Fernández
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessAllNodesDocumentProcessor
public ProcessAllNodesDocumentProcessor()
ProcessAllNodesDocumentProcessor
public ProcessAllNodesDocumentProcessor(IDocumentNodeProcessorMatcher matcher)
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence
in class AbstractProcessor
processDocumentNode
protected ProcessorResult processDocumentNode(Arguments arguments,
Document documentNode)
- Specified by:
processDocumentNode
in class AbstractDocumentProcessor
Copyright © 2013 The THYMELEAF team. All Rights Reserved.