Package org.xwiki.rendering.macro.source
Class MacroContentWikiSource
- java.lang.Object
-
- org.xwiki.rendering.macro.source.MacroContentWikiSource
-
@Unstable public class MacroContentWikiSource extends Object
A wiki content to use as macro content.- Since:
- 15.1RC1, 14.10.5
- Version:
- $Id: b11da664ab2e8a6f5095910be440a4e39d9338e7 $
-
-
Constructor Summary
Constructors Constructor Description MacroContentWikiSource(MacroContentSourceReference reference, String content, Syntax syntax)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getContent()
MacroContentSourceReference
getReference()
Syntax
getSyntax()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
MacroContentWikiSource
public MacroContentWikiSource(MacroContentSourceReference reference, String content, Syntax syntax)
- Parameters:
reference
- the reference of the contentcontent
- the wiki contentsyntax
- the syntax of the content if known, null otherwise
-
-
Method Detail
-
getReference
public MacroContentSourceReference getReference()
- Returns:
- the reference of the content
-
getContent
public String getContent()
- Returns:
- the wiki content
-
getSyntax
public Syntax getSyntax()
- Returns:
- the syntax of the content if known, null otherwise
-
-