public abstract class BaseMacro extends Object implements Macro
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected InitialRenderContext |
initialContext |
protected String[] |
paramDescription |
| Constructor and Description |
|---|
BaseMacro() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object object) |
abstract void |
execute(Writer writer,
MacroParameter params)
Execute the macro.
|
String |
getDescription()
Get a description of the macro.
|
abstract String |
getName()
Get the name of the macro.
|
String[] |
getParamDescription()
Get a description of the paramters of the macro.
|
void |
setInitialContext(InitialRenderContext context) |
String |
toString() |
protected InitialRenderContext initialContext
protected String description
protected String[] paramDescription
public abstract String getName()
public String getDescription()
getDescription in interface Macropublic String[] getParamDescription()
getParamDescription in interface Macropublic void setInitialContext(InitialRenderContext context)
setInitialContext in interface Macropublic abstract void execute(Writer writer, MacroParameter params) throws IllegalArgumentException, IOException
execute in interface Macrowriter - A write where the macro should write its output toparams - Macro parameters with the parameters the macro is called withIllegalArgumentExceptionIOExceptionpublic int compareTo(Object object)
compareTo in interface ComparableCopyright © 2003–2018 Sakai Project. All rights reserved.