Package org.radeox.macro
Class LinkMacro
- java.lang.Object
-
- org.radeox.macro.BaseMacro
-
- org.radeox.macro.BaseLocaleMacro
-
- org.radeox.macro.LinkMacro
-
- All Implemented Interfaces:
Comparable,org.radeox.api.macro.Macro,LocaleMacro
public class LinkMacro extends BaseLocaleMacro
-
-
Field Summary
-
Fields inherited from class org.radeox.macro.BaseMacro
initialContext
-
-
Constructor Summary
Constructors Constructor Description LinkMacro()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Writer writer, org.radeox.api.macro.MacroParameter params)Execute the macro.StringgetDescription()Get a description of the macro.StringgetLocaleKey()String[]getParamDescription()Get a description of the paramters of the macro.-
Methods inherited from class org.radeox.macro.BaseLocaleMacro
getName, setInitialContext
-
-
-
-
Method Detail
-
getParamDescription
public String[] getParamDescription()
Description copied from class:BaseMacroGet a description of the paramters of the macro. The method returns an array with an String entry for every parameter. The format is {"1: description", ...} where 1 is the position of the parameter.- Specified by:
getParamDescriptionin interfaceorg.radeox.api.macro.Macro- Overrides:
getParamDescriptionin classBaseMacro- Returns:
- description Array describing the parameters of the macro
-
getDescription
public String getDescription()
Description copied from class:BaseMacroGet a description of the macro. This description explains in a short way what the macro does- Specified by:
getDescriptionin interfaceorg.radeox.api.macro.Macro- Overrides:
getDescriptionin classBaseMacro- Returns:
- description A string describing the macro
-
getLocaleKey
public String getLocaleKey()
-
execute
public void execute(Writer writer, org.radeox.api.macro.MacroParameter params) throws IllegalArgumentException, IOException
Description copied from class:BaseMacroExecute the macro. This method is called by MacroFilter to handle macros.- Specified by:
executein interfaceorg.radeox.api.macro.Macro- Specified by:
executein classBaseMacro- Parameters:
writer- A write where the macro should write its output toparams- Macro parameters with the parameters the macro is called with- Throws:
IllegalArgumentExceptionIOException
-
-