org.thymeleaf.processor.document
Class AbstractDocumentProcessor

Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.document.AbstractDocumentProcessor
All Implemented Interfaces:
Comparable<IProcessor>, IProcessor
Direct Known Subclasses:
ProcessAllNodesDocumentProcessor, ProcessCommentNodesDocumentProcessor, ProcessTextNodesDocumentProcessor

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).

Since:
2.0.13
Author:
Daniel Fernández

Constructor Summary
AbstractDocumentProcessor(IDocumentNodeProcessorMatcher matcher)
           
 
Method Summary
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)
           
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, getPrecedence, process
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDocumentProcessor

public AbstractDocumentProcessor(IDocumentNodeProcessorMatcher matcher)
Method Detail

getMatcher

public IProcessorMatcher<? extends Document> getMatcher()
Description copied from interface: IProcessor

Returns the matcher (IProcessorMatcher) that defines the applicability of this processor.

Returns:
the matcher.

doProcess

protected final ProcessorResult doProcess(Arguments arguments,
                                          ProcessorMatchingContext processorMatchingContext,
                                          Node node)
Specified by:
doProcess in class AbstractProcessor

processDocumentNode

protected abstract ProcessorResult processDocumentNode(Arguments arguments,
                                                       Document documentNode)


Copyright © 2013 The THYMELEAF team. All Rights Reserved.