Class CodeMacroParameters


  • public class CodeMacroParameters
    extends org.xwiki.rendering.macro.box.BoxMacroParameters
    Parameters for the CodeMacro Macro.
    Since:
    1.7RC1
    Version:
    $Id: 5df2500b45b655328c3f5b3c0b231c151b005fcc $
    • Constructor Detail

      • CodeMacroParameters

        public CodeMacroParameters()
    • Method Detail

      • setLanguage

        public void setLanguage​(String language)
        Parameters:
        language - the language identifier.
      • getLanguage

        public String getLanguage()
        Returns:
        the language identifier.
      • setLayout

        public void setLayout​(CodeMacroLayout layout)
        Parameters:
        layout - the layout to apply to the code.
        Since:
        11.5RC1
      • getLayout

        public CodeMacroLayout getLayout()
        Returns:
        the layout to apply to the code.
        Since:
        11.5RC1
      • setSource

        public void setSource​(org.xwiki.rendering.macro.source.MacroContentSourceReference source)
        Parameters:
        source - the reference of the content to highlight
        Since:
        15.1RC1, 14.10.5
      • getSource

        public org.xwiki.rendering.macro.source.MacroContentSourceReference getSource()
        Returns:
        the reference of the content to highlight
        Since:
        15.1RC1, 14.10.5