Class ProcessorConfigurationUtils.PreProcessorWrapper
- All Implemented Interfaces:
IAttributeDefinitionsAware,IElementDefinitionsAware,IPreProcessor
- Enclosing class:
ProcessorConfigurationUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IProcessorDialectClass<? extends ITemplateHandler> Returns the handler class for this pre-processor, theITemplateHandlerthat implements the real logic to be executed.intReturns the precedence that should be applied to this pre-processor.Returns the template mode this pre-processor should be executed for.final voidsetAttributeDefinitions(AttributeDefinitions attributeDefinitions) final voidsetElementDefinitions(ElementDefinitions elementDefinitions) toString()final IPreProcessorunwrap()
-
Field Details
-
dialect
-
preProcessor
-
-
Constructor Details
-
PreProcessorWrapper
PreProcessorWrapper(IPreProcessor preProcessor, IProcessorDialect dialect)
-
-
Method Details
-
getTemplateMode
Description copied from interface:IPreProcessorReturns the template mode this pre-processor should be executed for. A pre-processor can only be linked to a specific template mode.
- Specified by:
getTemplateModein interfaceIPreProcessor- Returns:
- the template mode.
-
getPrecedence
public int getPrecedence()Description copied from interface:IPreProcessorReturns the precedence that should be applied to this pre-processor. This will determine the order in which it will be executed in relation to any other pre-processors (note that the dialect precedence determined by
IPreProcessorDialect.getDialectPreProcessorPrecedence()will be applied first).- Specified by:
getPrecedencein interfaceIPreProcessor- Returns:
- the pre-processor precedence.
-
getDialect
-
getHandlerClass
Description copied from interface:IPreProcessorReturns the handler class for this pre-processor, the
ITemplateHandlerthat implements the real logic to be executed.In order for pre-processors to work correctly, they need to implement correctly all the
ITemplateHandlercontract. In order to make this easier, extendingAbstractTemplateHandleris recommended.- Specified by:
getHandlerClassin interfaceIPreProcessor- Returns:
- the handler class.
-
unwrap
-
setAttributeDefinitions
- Specified by:
setAttributeDefinitionsin interfaceIAttributeDefinitionsAware
-
setElementDefinitions
- Specified by:
setElementDefinitionsin interfaceIElementDefinitionsAware
-
toString
-