Interface ContentTransformerFactory
-
- All Known Implementing Classes:
DefaultContentTransformerFactory
public interface ContentTransformerFactory
Interface of a factory class that createsTransformer
objects, typically used by macro developers to obtain and optionally modify macro tags (asMacroDefinition
objects) in a page of macro body content. SeeDefaultContentTransformerFactory
for an example.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Transformer
getTransformer(MacroDefinitionHandler macroDefinitionHandler)
Deprecated.Transformer
getTransformer(MacroDefinitionHandler handler, MacroDefinitionMarshallingStrategy strategy)
Returns a Transformer.Transformer
getTransformer(MacroDefinitionReplacer macroDefinitionReplacer)
Returns a Transformer.Transformer
getTransformer(MacroDefinitionUpdater macroDefinitionUpdater)
Returns a Transformer.
-
-
-
Method Detail
-
getTransformer
Transformer getTransformer(MacroDefinitionUpdater macroDefinitionUpdater)
Returns a Transformer.- Parameters:
macroDefinitionUpdater
- that will be called each time a macro is found in the content.- Returns:
- a transformer.
-
getTransformer
Transformer getTransformer(MacroDefinitionReplacer macroDefinitionReplacer)
Returns a Transformer.- Parameters:
macroDefinitionReplacer
- that will be called each time a macro is found in the content.- Returns:
- a transformer.
-
getTransformer
@Deprecated Transformer getTransformer(MacroDefinitionHandler macroDefinitionHandler)
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.
-
-