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 Summary
Modifier and TypeMethodDescriptionwrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition) Execute macro wrapping.
-
Method Details
-
wrap
String wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition) Execute macro wrapping. Example: Status andInfo macro
- Parameters:
context- the conversion contextoutputType- output typemacroBody- rendered macro bodymacroDefinition- definition of macro- Returns:
- macro has wrapped otherwise the original
-