Class AbstractXMLDeclarationProcessor
- Object
-
- org.thymeleaf.processor.AbstractProcessor
-
- org.thymeleaf.processor.xmldeclaration.AbstractXMLDeclarationProcessor
-
- All Implemented Interfaces:
IProcessor,IXMLDeclarationProcessor
public abstract class AbstractXMLDeclarationProcessor extends AbstractProcessor implements IXMLDeclarationProcessor
Basic abstract implementation of
IXMLDeclarationProcessor.This abstract implementation takes care of correct exception handling so that subclasses don't have to.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description AbstractXMLDeclarationProcessor(TemplateMode templateMode, int precedence)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoProcess(ITemplateContext context, IXMLDeclaration xmlDeclaration, IXMLDeclarationStructureHandler structureHandler)voidprocess(ITemplateContext context, IXMLDeclaration xmlDeclaration, IXMLDeclarationStructureHandler structureHandler)Execute the processor.-
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateMode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.thymeleaf.processor.IProcessor
getPrecedence, getTemplateMode
-
-
-
-
Constructor Detail
-
AbstractXMLDeclarationProcessor
public AbstractXMLDeclarationProcessor(TemplateMode templateMode, int precedence)
-
-
Method Detail
-
process
public final void process(ITemplateContext context, IXMLDeclaration xmlDeclaration, IXMLDeclarationStructureHandler structureHandler)
Description copied from interface:IXMLDeclarationProcessorExecute the processor.
The
IXMLDeclarationobject argument is immutable, so all modifications to this object or any instructions to be given to the engine should be done through the specifiedIXMLDeclarationStructureHandlerhandler.- Specified by:
processin interfaceIXMLDeclarationProcessor- Parameters:
context- the execution context.xmlDeclaration- the event this processor is executing on.structureHandler- the handler that will centralise modifications and commands to the engine.
-
doProcess
protected abstract void doProcess(ITemplateContext context, IXMLDeclaration xmlDeclaration, IXMLDeclarationStructureHandler structureHandler)
-
-