Class DisplayMacroParameters
- java.lang.Object
-
- org.xwiki.rendering.macro.display.DisplayMacroParameters
-
public class DisplayMacroParameters extends Object
Parameters for theDisplayMacro
Macro.- Since:
- 3.4M1
- Version:
- $Id: 60379451aab8c92d2b76da7cd9951e9726c66702 $
-
-
Constructor Summary
Constructors Constructor Description DisplayMacroParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getReference()
String
getSection()
EntityType
getType()
boolean
isExcludeFirstHeading()
void
setExcludeFirstHeading(boolean excludeFirstHeading)
void
setPage(String page)
void
setReference(String reference)
void
setSection(String sectionId)
void
setType(EntityType type)
-
-
-
Method Detail
-
setReference
public void setReference(String reference)
- Parameters:
reference
- the reference to display- Since:
- 3.4M1
-
getReference
public String getReference()
- Returns:
- the reference of the resource to display
- Since:
- 3.4M1
-
getType
public EntityType getType()
- Returns:
- the type of the reference
- Since:
- 3.4M1
-
setType
public void setType(EntityType type)
- Parameters:
type
- the type of the reference- Since:
- 3.4M1
-
setSection
public void setSection(String sectionId)
- Parameters:
sectionId
- seegetSection()
-
getSection
public String getSection()
- Returns:
- the optional id of a section to include in the referenced document. If not specified the whole document is included.
-
setExcludeFirstHeading
public void setExcludeFirstHeading(boolean excludeFirstHeading)
- Parameters:
excludeFirstHeading
-true
to remove the first heading found inside the document or the section,false
to keep it- Since:
- 12.4RC1
-
isExcludeFirstHeading
public boolean isExcludeFirstHeading()
- Returns:
- whether to exclude the first heading from the displayed document or section, or not.
- Since:
- 12.4RC1
-
setPage
public void setPage(String page)
- Parameters:
page
- the reference of the page to display- Since:
- 10.6RC1
-
-