Interface ContentTransformerFactory
- All Known Implementing Classes:
DefaultContentTransformerFactory
public interface ContentTransformerFactory
Interface of a factory class that creates
Transformer
objects, typically used by macro developers to obtain
and optionally modify macro tags (as MacroDefinition
objects) in a page of macro body content.
See DefaultContentTransformerFactory
for an example.-
Method Summary
Modifier and TypeMethodDescriptiongetTransformer
(MacroDefinitionHandler macroDefinitionHandler) Deprecated.getTransformer
(MacroDefinitionHandler handler, MacroDefinitionMarshallingStrategy strategy) Returns a Transformer.getTransformer
(MacroDefinitionReplacer macroDefinitionReplacer) Returns a Transformer.getTransformer
(MacroDefinitionUpdater macroDefinitionUpdater) Returns a Transformer.
-
Method Details
-
getTransformer
Returns a Transformer.- Parameters:
macroDefinitionUpdater
- that will be called each time a macro is found in the content.- Returns:
- a transformer.
-
getTransformer
Returns a Transformer.- Parameters:
macroDefinitionReplacer
- that will be called each time a macro is found in the content.- Returns:
- a transformer.
-
getTransformer
Deprecated.UsegetTransformer(MacroDefinitionHandler, MacroDefinitionMarshallingStrategy)
instead. Since v5.0.Returns a Transformer.- Parameters:
macroDefinitionHandler
- that will be called each time a macro is found in the content.- Returns:
- a transformer.
-
getTransformer
Transformer getTransformer(MacroDefinitionHandler handler, MacroDefinitionMarshallingStrategy strategy) Returns a Transformer.- Parameters:
handler
- that will be called each time a macro is found in the content.strategy
- that determines how each macro's MacroDefinition should be marshalled.- Returns:
- a transformer.
-
getTransformer(MacroDefinitionHandler, MacroDefinitionMarshallingStrategy)
instead.