com.atlassian.confluence.macro
Class MacroExecutionContext

java.lang.Object
  extended by com.atlassian.confluence.macro.MacroExecutionContext

public class MacroExecutionContext
extends java.lang.Object

Container for the execution context of a macro (i.e., the state passed to it on Macro.execute(java.util.Map, String, com.atlassian.renderer.RenderContext)).

Since:
2.9

Constructor Summary
MacroExecutionContext(java.util.Map<java.lang.String,java.lang.String> params, java.lang.String body, PageContext pageContext)
          Constructor.
 
Method Summary
 java.lang.String getBody()
          Returns the body of the macro.
 ContentEntityObject getContent()
          Returns the ContentEntityObject associated with this macro.
 PageContext getPageContext()
          Returns the PageContext of the macro.
 java.util.Map<java.lang.String,java.lang.String> getParams()
          Returns the macro parameters and their values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroExecutionContext

public MacroExecutionContext(java.util.Map<java.lang.String,java.lang.String> params,
                             java.lang.String body,
                             PageContext pageContext)
Constructor.

Parameters:
params - the parameters passed to the macro from the page
body - the body of the macro (the text contained between the start and end tags)
pageContext - the PageContext that the macro is called from
Method Detail

getParams

public java.util.Map<java.lang.String,java.lang.String> getParams()
Returns the macro parameters and their values.

Returns:
the macro parameters and their values.

getBody

public java.lang.String getBody()
Returns the body of the macro.

Returns:
the body of the macro

getPageContext

public PageContext getPageContext()
Returns the PageContext of the macro.

Returns:
the PageContext of the macro.

getContent

public ContentEntityObject getContent()
Returns the ContentEntityObject associated with this macro.

Returns:
the ContentEntityObject associated with this macro


Copyright © 2003-2010 Atlassian. All Rights Reserved.