
public class PluginContent extends org.jdom2.Text
| Constructor and Description | 
|---|
| PluginContent(String pluginName,
             Map<String,String> parameters)Creates a new DOM element with the given plugin name and a map of parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | executeParse(WikiContext context)Executes the executeParse() method. | 
| String | getParameter(String name)Returns a parameter value from the parameter map. | 
| Map<String,String> | getParameters()Returns the parameter map given in the constructor. | 
| String | getPluginName()Returns the name of the plugin invoked by the DOM element. | 
| String | getText()The main invocation for the plugin. | 
| String | getValue()Returns the rendered plugin. | 
| String | invoke(WikiContext context)Performs plugin invocation and return its contents. | 
| static PluginContent | parsePluginLine(WikiContext context,
               String commandline,
               int pos)Parses a plugin invocation and returns a DOM element. | 
append, append, clone, detach, getParent, getTextNormalize, getTextTrim, normalizeString, setParent, setText, toStringpublic PluginContent(String pluginName, Map<String,String> parameters)
pluginName - The FQN of a plugin.parameters - A Map of parameters.public String getPluginName()
public String getParameter(String name)
name - the name of the parameter.public Map<String,String> getParameters()
public String getValue()
getValue in class org.jdom2.Textpublic String getText()
getText in class org.jdom2.Textpublic String invoke(WikiContext context)
context - WikiContext in which the plugin is executed. Must NOT be null.public void executeParse(WikiContext context) throws PluginException
context - The WikiContextPluginException - If something goes wrong.public static PluginContent parsePluginLine(WikiContext context, String commandline, int pos) throws PluginException
context - The WikiContextcommandline - The line to parsepos - The position in the stream parsing.PluginException - If plugin invocation is faultyCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.