Class ProcessorConfigurationUtils
- Object
-
- org.thymeleaf.util.ProcessorConfigurationUtils
-
public final class ProcessorConfigurationUtils extends Object
Utility class containing methods relating to the configuration of processors (e.g. wrapping).
This class is mainly for internal use.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPostProcessorunwrap(IPostProcessor postProcessor)Unwraps a wrapped implementation ofIPostProcessor.static IPreProcessorunwrap(IPreProcessor preProcessor)Unwraps a wrapped implementation ofIPreProcessor.static ICDATASectionProcessorunwrap(ICDATASectionProcessor processor)Unwraps a wrapped implementation ofICDATASectionProcessor.static ICommentProcessorunwrap(ICommentProcessor processor)Unwraps a wrapped implementation ofICommentProcessor.static IDocTypeProcessorunwrap(IDocTypeProcessor processor)Unwraps a wrapped implementation ofIDocTypeProcessor.static IElementProcessorunwrap(IElementProcessor processor)Unwraps a wrapped implementation ofIElementProcessor.static IProcessingInstructionProcessorunwrap(IProcessingInstructionProcessor processor)Unwraps a wrapped implementation ofIProcessingInstructionProcessor.static ITemplateBoundariesProcessorunwrap(ITemplateBoundariesProcessor processor)Unwraps a wrapped implementation ofITemplateBoundariesProcessor.static ITextProcessorunwrap(ITextProcessor processor)Unwraps a wrapped implementation ofITextProcessor.static IXMLDeclarationProcessorunwrap(IXMLDeclarationProcessor processor)Unwraps a wrapped implementation ofIXMLDeclarationProcessor.static IPostProcessorwrap(IPostProcessor postProcessor, IProcessorDialect dialect)Wraps an implementation ofIPostProcessorinto an object that adds some information required internally (like e.g.static IPreProcessorwrap(IPreProcessor preProcessor, IProcessorDialect dialect)Wraps an implementation ofIPreProcessorinto an object that adds some information required internally (like e.g.static ICDATASectionProcessorwrap(ICDATASectionProcessor processor, IProcessorDialect dialect)Wraps an implementation ofICDATASectionProcessorinto an object that adds some information required internally (like e.g.static ICommentProcessorwrap(ICommentProcessor processor, IProcessorDialect dialect)Wraps an implementation ofICommentProcessorinto an object that adds some information required internally (like e.g.static IDocTypeProcessorwrap(IDocTypeProcessor processor, IProcessorDialect dialect)Wraps an implementation ofIDocTypeProcessorinto an object that adds some information required internally (like e.g.static IElementProcessorwrap(IElementProcessor processor, IProcessorDialect dialect)Wraps an implementation ofIElementProcessorinto an object that adds some information required internally (like e.g.static IProcessingInstructionProcessorwrap(IProcessingInstructionProcessor processor, IProcessorDialect dialect)Wraps an implementation ofIProcessingInstructionProcessorinto an object that adds some information required internally (like e.g.static ITemplateBoundariesProcessorwrap(ITemplateBoundariesProcessor processor, IProcessorDialect dialect)Wraps an implementation ofITemplateBoundariesProcessorinto an object that adds some information required internally (like e.g.static ITextProcessorwrap(ITextProcessor processor, IProcessorDialect dialect)Wraps an implementation ofITextProcessorinto an object that adds some information required internally (like e.g.static IXMLDeclarationProcessorwrap(IXMLDeclarationProcessor processor, IProcessorDialect dialect)Wraps an implementation ofIXMLDeclarationProcessorinto an object that adds some information required internally (like e.g.
-
-
-
Method Detail
-
wrap
public static IElementProcessor wrap(IElementProcessor processor, IProcessorDialect dialect)
Wraps an implementation of
IElementProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
processor- the processor to be wrapped.dialect- the dialect this processor was configured for.- Returns:
- the wrapped processor.
-
wrap
public static ICDATASectionProcessor wrap(ICDATASectionProcessor processor, IProcessorDialect dialect)
Wraps an implementation of
ICDATASectionProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
processor- the processor to be wrapped.dialect- the dialect this processor was configured for.- Returns:
- the wrapped processor.
-
wrap
public static ICommentProcessor wrap(ICommentProcessor processor, IProcessorDialect dialect)
Wraps an implementation of
ICommentProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
processor- the processor to be wrapped.dialect- the dialect this processor was configured for.- Returns:
- the wrapped processor.
-
wrap
public static IDocTypeProcessor wrap(IDocTypeProcessor processor, IProcessorDialect dialect)
Wraps an implementation of
IDocTypeProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
processor- the processor to be wrapped.dialect- the dialect this processor was configured for.- Returns:
- the wrapped processor.
-
wrap
public static IProcessingInstructionProcessor wrap(IProcessingInstructionProcessor processor, IProcessorDialect dialect)
Wraps an implementation of
IProcessingInstructionProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
processor- the processor to be wrapped.dialect- the dialect this processor was configured for.- Returns:
- the wrapped processor.
-
wrap
public static ITemplateBoundariesProcessor wrap(ITemplateBoundariesProcessor processor, IProcessorDialect dialect)
Wraps an implementation of
ITemplateBoundariesProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
processor- the processor to be wrapped.dialect- the dialect this processor was configured for.- Returns:
- the wrapped processor.
-
wrap
public static ITextProcessor wrap(ITextProcessor processor, IProcessorDialect dialect)
Wraps an implementation of
ITextProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
processor- the processor to be wrapped.dialect- the dialect this processor was configured for.- Returns:
- the wrapped processor.
-
wrap
public static IXMLDeclarationProcessor wrap(IXMLDeclarationProcessor processor, IProcessorDialect dialect)
Wraps an implementation of
IXMLDeclarationProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
processor- the processor to be wrapped.dialect- the dialect this processor was configured for.- Returns:
- the wrapped processor.
-
wrap
public static IPreProcessor wrap(IPreProcessor preProcessor, IProcessorDialect dialect)
Wraps an implementation of
IPreProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
preProcessor- the pre-processor to be wrapped.dialect- the dialect this pre-processor was configured for.- Returns:
- the wrapped pre-processor.
-
wrap
public static IPostProcessor wrap(IPostProcessor postProcessor, IProcessorDialect dialect)
Wraps an implementation of
IPostProcessorinto an object that adds some information required internally (like e.g. the dialect this processor was registered for).This method is meant for internal use only.
- Parameters:
postProcessor- the post-processor to be wrapped.dialect- the dialect this post-processor was configured for.- Returns:
- the wrapped post-processor.
-
unwrap
public static IElementProcessor unwrap(IElementProcessor processor)
Unwraps a wrapped implementation of
IElementProcessor.This method is meant for internal use only.
- Parameters:
processor- the processor to be unwrapped.- Returns:
- the unwrapped processor.
-
unwrap
public static ICDATASectionProcessor unwrap(ICDATASectionProcessor processor)
Unwraps a wrapped implementation of
ICDATASectionProcessor.This method is meant for internal use only.
- Parameters:
processor- the processor to be unwrapped.- Returns:
- the unwrapped processor.
-
unwrap
public static ICommentProcessor unwrap(ICommentProcessor processor)
Unwraps a wrapped implementation of
ICommentProcessor.This method is meant for internal use only.
- Parameters:
processor- the processor to be unwrapped.- Returns:
- the unwrapped processor.
-
unwrap
public static IDocTypeProcessor unwrap(IDocTypeProcessor processor)
Unwraps a wrapped implementation of
IDocTypeProcessor.This method is meant for internal use only.
- Parameters:
processor- the processor to be unwrapped.- Returns:
- the unwrapped processor.
-
unwrap
public static IProcessingInstructionProcessor unwrap(IProcessingInstructionProcessor processor)
Unwraps a wrapped implementation of
IProcessingInstructionProcessor.This method is meant for internal use only.
- Parameters:
processor- the processor to be unwrapped.- Returns:
- the unwrapped processor.
-
unwrap
public static ITemplateBoundariesProcessor unwrap(ITemplateBoundariesProcessor processor)
Unwraps a wrapped implementation of
ITemplateBoundariesProcessor.This method is meant for internal use only.
- Parameters:
processor- the processor to be unwrapped.- Returns:
- the unwrapped processor.
-
unwrap
public static ITextProcessor unwrap(ITextProcessor processor)
Unwraps a wrapped implementation of
ITextProcessor.This method is meant for internal use only.
- Parameters:
processor- the processor to be unwrapped.- Returns:
- the unwrapped processor.
-
unwrap
public static IXMLDeclarationProcessor unwrap(IXMLDeclarationProcessor processor)
Unwraps a wrapped implementation of
IXMLDeclarationProcessor.This method is meant for internal use only.
- Parameters:
processor- the processor to be unwrapped.- Returns:
- the unwrapped processor.
-
unwrap
public static IPreProcessor unwrap(IPreProcessor preProcessor)
Unwraps a wrapped implementation of
IPreProcessor.This method is meant for internal use only.
- Parameters:
preProcessor- the pre-processor to be unwrapped.- Returns:
- the unwrapped pre-processor.
-
unwrap
public static IPostProcessor unwrap(IPostProcessor postProcessor)
Unwraps a wrapped implementation of
IPostProcessor.This method is meant for internal use only.
- Parameters:
postProcessor- the post-processor to be unwrapped.- Returns:
- the unwrapped post-processor.
-
-