|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.macro.browser.beans.MacroFormDetails
public class MacroFormDetails
A Bean that encapsulates the detailed metadata of a macro. This includes the macro parameter information, documentation links and notation help guide contents.
Method Summary | |
---|---|
MacroBody |
getBody()
|
String |
getDocumentationUrl()
|
String |
getMacroName()
|
String |
getNotationHelp()
|
List<MacroParameter> |
getParameters()
|
boolean |
isFreeform()
|
boolean |
isShowDefaultParamInPlaceholder()
|
static MacroFormDetails |
makeFreeformDetails(String macroName,
String documentationUrl,
ResourceDescriptor notationHelpResource)
Deprecated. since 4.0 freeform macros are no longer supported |
static MacroFormDetails |
makeParameterFormDetails(String macroName,
String documentationUrl,
boolean showDefaultParamInPlaceholder,
List<MacroParameter> parameters)
|
static MacroFormDetails |
makeParameterFormDetails(String macroName,
String documentationUrl,
List<MacroParameter> parameters)
Deprecated. since 4.0 use makeParameterFormDetails(String, String, boolean, java.util.List) instead |
void |
renderForDisplay(org.apache.velocity.context.Context context)
This method should be called to render macro details before passing to the front end for display. |
void |
setBody(MacroBody body)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
@Deprecated public static MacroFormDetails makeFreeformDetails(String macroName, String documentationUrl, ResourceDescriptor notationHelpResource)
@Deprecated public static MacroFormDetails makeParameterFormDetails(String macroName, String documentationUrl, List<MacroParameter> parameters)
makeParameterFormDetails(String, String, boolean, java.util.List)
instead
public static MacroFormDetails makeParameterFormDetails(String macroName, String documentationUrl, boolean showDefaultParamInPlaceholder, List<MacroParameter> parameters)
public String getMacroName()
public void renderForDisplay(org.apache.velocity.context.Context context)
context
- the velocity context to render withpublic String getNotationHelp()
renderForDisplay(Context)
method must be called
before this.public String getDocumentationUrl()
public void setBody(MacroBody body)
public MacroBody getBody()
MacroMetadata.isBodyDeprecated()
public boolean isFreeform()
public boolean isShowDefaultParamInPlaceholder()
public List<MacroParameter> getParameters()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |