org.ceryle.wiki.plugin.assertion
Class AssertedTagPlugin

java.lang.Object
  extended by org.ceryle.wiki.plugin.tag.TagPlugin
      extended by org.ceryle.wiki.plugin.assertion.AssertedTagPlugin
All Implemented Interfaces:
WikiPlugin

public class AssertedTagPlugin
extends TagPlugin

Extends the TagPlugin by additionally asserting the tag as an Assertion.

Author:
Murray Altheim
See Also:
TagPlugin

Field Summary
protected static org.apache.log4j.Logger log
           
protected  boolean m_assertionHandlerAvailable
           
protected  AssertionHandler m_handler
           
protected  AssertionProcessor m_parser
           
static String PLUGIN_NAME
           
 
Fields inherited from class org.ceryle.wiki.plugin.tag.TagPlugin
CLASS_TAG_ERROR, CLASS_TAGS, LSBR, m_context, m_debug, m_engine, m_outputFormat, m_params, m_tagManager, REQUIRE_PAGE_FOR_TAG, RSBR, TAG_PREDICATE
 
Fields inherited from interface com.ecyrd.jspwiki.plugin.WikiPlugin
CORE_PLUGINS_RESOURCEBUNDLE
 
Constructor Summary
AssertedTagPlugin()
           
 
Method Summary
protected  Set assertTag(String body, Stack terms)
          Parses the parameter Map, processing and converting the terms as necessary.
 void initialize(WikiContext context, Map map)
          For compliance with earlier versions of the InitializablePlugin API.
 void initialize(WikiEngine engine)
          The initialization method.
protected  void processTerms(String pagename, List terms)
          Process the Terms via the TagManager.
 
Methods inherited from class org.ceryle.wiki.plugin.tag.TagPlugin
appendErrorMessage, error, execute, printTagOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log

PLUGIN_NAME

public static String PLUGIN_NAME

m_assertionHandlerAvailable

protected boolean m_assertionHandlerAvailable

m_parser

protected AssertionProcessor m_parser

m_handler

protected AssertionHandler m_handler
Constructor Detail

AssertedTagPlugin

public AssertedTagPlugin()
Method Detail

processTerms

protected void processTerms(String pagename,
                            List terms)
                     throws QueryException
Process the Terms via the TagManager.

Overrides:
processTerms in class TagPlugin
Throws:
QueryException

assertTag

protected Set assertTag(String body,
                        Stack terms)
                 throws QueryException
Parses the parameter Map, processing and converting the terms as necessary.

Throws:
QueryException

initialize

public void initialize(WikiContext context,
                       Map map)
                throws PluginException
For compliance with earlier versions of the InitializablePlugin API.

Throws:
PluginException

initialize

public void initialize(WikiEngine engine)
                throws PluginException
The initialization method. The context is to a Wiki page, and the parameters are exactly like in the execute() method. However, this method is not expected to return anything, as any output will be discarded.

Throws:
PluginException


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.