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).
| Constructor and Description |
|---|
ProcessAllNodesDocumentProcessor() |
ProcessAllNodesDocumentProcessor(IDocumentNodeProcessorMatcher matcher) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPrecedence() |
protected ProcessorResult |
processDocumentNode(Arguments arguments,
Document documentNode) |
doProcess, getMatchercompareTo, getMessage, getMessageForProcessor, getMessageForTemplate, processpublic ProcessAllNodesDocumentProcessor()
public ProcessAllNodesDocumentProcessor(IDocumentNodeProcessorMatcher matcher)
public int getPrecedence()
getPrecedence in class AbstractProcessorprotected ProcessorResult processDocumentNode(Arguments arguments, Document documentNode)
processDocumentNode in class AbstractDocumentProcessorCopyright © 2016 The THYMELEAF team. All rights reserved.