Package org.xwiki.rendering.macro.code
Class CodeMacroParameters
- java.lang.Object
-
- org.xwiki.rendering.macro.box.BoxMacroParameters
-
- org.xwiki.rendering.macro.code.CodeMacroParameters
-
public class CodeMacroParameters extends org.xwiki.rendering.macro.box.BoxMacroParameters
Parameters for theCodeMacro
Macro.- Since:
- 1.7RC1
- Version:
- $Id: 5df2500b45b655328c3f5b3c0b231c151b005fcc $
-
-
Constructor Summary
Constructors Constructor Description CodeMacroParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLanguage()
CodeMacroLayout
getLayout()
org.xwiki.rendering.macro.source.MacroContentSourceReference
getSource()
void
setLanguage(String language)
void
setLayout(CodeMacroLayout layout)
void
setSource(org.xwiki.rendering.macro.source.MacroContentSourceReference source)
-
-
-
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
-
-