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 Details

    • 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

      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.