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.
Constructor and Description |
---|
AbstractXMLDeclarationProcessor(TemplateMode templateMode,
int precedence) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doProcess(ITemplateContext context,
IXMLDeclaration xmlDeclaration,
IXMLDeclarationStructureHandler structureHandler) |
void |
process(ITemplateContext context,
IXMLDeclaration xmlDeclaration,
IXMLDeclarationStructureHandler structureHandler)
Execute the processor.
|
getPrecedence, getTemplateMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPrecedence, getTemplateMode
public AbstractXMLDeclarationProcessor(TemplateMode templateMode, int precedence)
public final void process(ITemplateContext context, IXMLDeclaration xmlDeclaration, IXMLDeclarationStructureHandler structureHandler)
IXMLDeclarationProcessor
Execute the processor.
The IXMLDeclaration
object argument is immutable, so all modifications to this object or any
instructions to be given to the engine should be done through the specified
IXMLDeclarationStructureHandler
handler.
process
in interface IXMLDeclarationProcessor
context
- the execution context.xmlDeclaration
- the event this processor is executing on.structureHandler
- the handler that will centralise modifications and commands to the engine.protected abstract void doProcess(ITemplateContext context, IXMLDeclaration xmlDeclaration, IXMLDeclarationStructureHandler structureHandler)
Copyright © 2017 The THYMELEAF team. All rights reserved.