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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition, boolean wrap)
Execute macro wrapping.
-
-
-
Method Detail
-
wrap
String wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition, boolean wrap)
Execute macro wrapping. Example: Status andInfo macro
- Parameters:
context
- the conversion contextoutputType
- output typemacroBody
- rendered macro bodymacroDefinition
- definition of macrowrap
- flag which specifies if macro body has to be wrapped- Returns:
- macro has wrapped otherwise the original
-
-