Interface ViewMacroWrapper

  • All Known Implementing Classes:
    DefaultViewMacroWrapper

    public interface ViewMacroWrapper
    Wrapper Macro into div element if fragment contains more than 1 level xml elements otherwise update class and add attributes to root element.
    • Method Detail

      • wrap

        String wrap​(ConversionContext context,
                    Macro.OutputType outputType,
                    String macroBody,
                    MacroDefinition macroDefinition,
                    boolean wrap)
        Execute macro wrapping. Example: Status and

        Info macro

        Parameters:
        context - the conversion context
        outputType - output type
        macroBody - rendered macro body
        macroDefinition - definition of macro
        wrap - flag which specifies if macro body has to be wrapped
        Returns:
        macro has wrapped otherwise the original