Class PluginContent

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PluginElement, org.jdom2.NamespaceAware

    public class PluginContent
    extends org.jdom2.Text
    implements PluginElement
    Stores the contents of a plugin in a WikiDocument DOM tree.

    If the Context.VAR_WYSIWYG_EDITOR_MODE is set to Boolean.TRUE in the context, then the plugin is rendered as WikiMarkup. This allows an HTML editor to work without rendering the plugin each time as well.

    If Context.VAR_EXECUTE_PLUGINS is set to Boolean.FALSE, then the plugin is not executed.

    Since:
    2.4
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.jdom2.Content

        org.jdom2.Content.CType
    • Field Summary

      • Fields inherited from class org.jdom2.Text

        value
      • Fields inherited from class org.jdom2.Content

        ctype, parent
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginContent​(java.lang.String pluginName, java.util.Map<java.lang.String,​java.lang.String> parameters)
      Creates a new DOM element with the given plugin name and a map of parameters.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void executeParse​(Context context)
      java.lang.String getParameter​(java.lang.String name)
      java.util.Map<java.lang.String,​java.lang.String> getParameters()
      java.lang.String getPluginName()
      java.lang.String getText()
      java.lang.String getValue()
      java.lang.String invoke​(Context context)
      static PluginContent parsePluginLine​(Context context, java.lang.String commandline, int pos)
      Parses a plugin invocation and returns a DOM element.
      • Methods inherited from class org.jdom2.Text

        append, append, clone, detach, getParent, getTextNormalize, getTextTrim, normalizeString, setParent, setText, toString
      • Methods inherited from class org.jdom2.Content

        equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParentElement, hashCode
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait