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 Default Methods Deprecated Methods Modifier and Type Method Description String
wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition)
Execute macro wrapping.default String
wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition, boolean wrap)
Deprecated.since 8.3.0, usewrap(ConversionContext, Macro.OutputType, String, MacroDefinition)
-
-
-
Method Detail
-
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
-
wrap
@Deprecated(since="8.3.0") default String wrap(ConversionContext context, Macro.OutputType outputType, String macroBody, MacroDefinition macroDefinition, boolean wrap)
Deprecated.since 8.3.0, usewrap(ConversionContext, Macro.OutputType, String, MacroDefinition)
-
-