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 IPostProcessor
unwrap(IPostProcessor postProcessor)
Unwraps a wrapped implementation ofIPostProcessor
.static IPreProcessor
unwrap(IPreProcessor preProcessor)
Unwraps a wrapped implementation ofIPreProcessor
.static ICDATASectionProcessor
unwrap(ICDATASectionProcessor processor)
Unwraps a wrapped implementation ofICDATASectionProcessor
.static ICommentProcessor
unwrap(ICommentProcessor processor)
Unwraps a wrapped implementation ofICommentProcessor
.static IDocTypeProcessor
unwrap(IDocTypeProcessor processor)
Unwraps a wrapped implementation ofIDocTypeProcessor
.static IElementProcessor
unwrap(IElementProcessor processor)
Unwraps a wrapped implementation ofIElementProcessor
.static IProcessingInstructionProcessor
unwrap(IProcessingInstructionProcessor processor)
Unwraps a wrapped implementation ofIProcessingInstructionProcessor
.static ITemplateBoundariesProcessor
unwrap(ITemplateBoundariesProcessor processor)
Unwraps a wrapped implementation ofITemplateBoundariesProcessor
.static ITextProcessor
unwrap(ITextProcessor processor)
Unwraps a wrapped implementation ofITextProcessor
.static IXMLDeclarationProcessor
unwrap(IXMLDeclarationProcessor processor)
Unwraps a wrapped implementation ofIXMLDeclarationProcessor
.static IPostProcessor
wrap(IPostProcessor postProcessor, IProcessorDialect dialect)
Wraps an implementation ofIPostProcessor
into an object that adds some information required internally (like e.g.static IPreProcessor
wrap(IPreProcessor preProcessor, IProcessorDialect dialect)
Wraps an implementation ofIPreProcessor
into an object that adds some information required internally (like e.g.static ICDATASectionProcessor
wrap(ICDATASectionProcessor processor, IProcessorDialect dialect)
Wraps an implementation ofICDATASectionProcessor
into an object that adds some information required internally (like e.g.static ICommentProcessor
wrap(ICommentProcessor processor, IProcessorDialect dialect)
Wraps an implementation ofICommentProcessor
into an object that adds some information required internally (like e.g.static IDocTypeProcessor
wrap(IDocTypeProcessor processor, IProcessorDialect dialect)
Wraps an implementation ofIDocTypeProcessor
into an object that adds some information required internally (like e.g.static IElementProcessor
wrap(IElementProcessor processor, IProcessorDialect dialect)
Wraps an implementation ofIElementProcessor
into an object that adds some information required internally (like e.g.static IProcessingInstructionProcessor
wrap(IProcessingInstructionProcessor processor, IProcessorDialect dialect)
Wraps an implementation ofIProcessingInstructionProcessor
into an object that adds some information required internally (like e.g.static ITemplateBoundariesProcessor
wrap(ITemplateBoundariesProcessor processor, IProcessorDialect dialect)
Wraps an implementation ofITemplateBoundariesProcessor
into an object that adds some information required internally (like e.g.static ITextProcessor
wrap(ITextProcessor processor, IProcessorDialect dialect)
Wraps an implementation ofITextProcessor
into an object that adds some information required internally (like e.g.static IXMLDeclarationProcessor
wrap(IXMLDeclarationProcessor processor, IProcessorDialect dialect)
Wraps an implementation ofIXMLDeclarationProcessor
into 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
IElementProcessor
into 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
ICDATASectionProcessor
into 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
ICommentProcessor
into 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
IDocTypeProcessor
into 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
IProcessingInstructionProcessor
into 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
ITemplateBoundariesProcessor
into 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
ITextProcessor
into 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
IXMLDeclarationProcessor
into 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
IPreProcessor
into 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
IPostProcessor
into 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.
-
-