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, getMatcher
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
public ProcessAllNodesDocumentProcessor()
public ProcessAllNodesDocumentProcessor(IDocumentNodeProcessorMatcher matcher)
public int getPrecedence()
getPrecedence
in class AbstractProcessor
protected ProcessorResult processDocumentNode(Arguments arguments, Document documentNode)
processDocumentNode
in class AbstractDocumentProcessor
Copyright © 2017 The THYMELEAF team. All rights reserved.