public abstract class AbstractDocumentProcessor extends AbstractProcessor
Base IProcessor
implementation for processors
that should apply to a Document
DOM node (usually
for initializing DOM processing parameters or variables.
One common example of these uses is represented by ProcessAllNodesDocumentProcessor
,
which is designed for setting to true the flag that tells the Thymeleaf engine to
process all nodes (and not only nodes of type Element
).
Modifier | Constructor and Description |
---|---|
protected |
AbstractDocumentProcessor(IDocumentNodeProcessorMatcher matcher) |
Modifier and Type | Method and Description |
---|---|
protected ProcessorResult |
doProcess(Arguments arguments,
ProcessorMatchingContext processorMatchingContext,
Node node) |
IProcessorMatcher<? extends Document> |
getMatcher()
Returns the matcher (
IProcessorMatcher ) that
defines the applicability of this processor. |
protected abstract ProcessorResult |
processDocumentNode(Arguments arguments,
Document documentNode) |
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, getPrecedence, process
protected AbstractDocumentProcessor(IDocumentNodeProcessorMatcher matcher)
public IProcessorMatcher<? extends Document> getMatcher()
IProcessor
Returns the matcher (IProcessorMatcher
) that
defines the applicability of this processor.
protected final ProcessorResult doProcess(Arguments arguments, ProcessorMatchingContext processorMatchingContext, Node node)
doProcess
in class AbstractProcessor
protected abstract ProcessorResult processDocumentNode(Arguments arguments, Document documentNode)
Copyright © 2016 The THYMELEAF team. All rights reserved.