info.bliki.wiki.template
Class Ifeq

java.lang.Object
  extended by info.bliki.wiki.template.AbstractTemplateFunction
      extended by info.bliki.wiki.template.Ifeq
All Implemented Interfaces:
ITemplateFunction

public class Ifeq
extends AbstractTemplateFunction

A template parser function for {{ #ifeq: ... }} syntax


Field Summary
static ITemplateFunction CONST
           
 
Constructor Summary
Ifeq()
           
 
Method Summary
 java.lang.String parseFunction(char[] src, int beginIndex, int endIndex, IWikiModel model)
          Parse a template function (like for example {{ #if: ... }}) The result is also a text string in Wikipedia syntax notation which will be parsed again (recursively) in the TemplateParser step.
 
Methods inherited from class info.bliki.wiki.template.AbstractTemplateFunction
getFunctionDoc
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONST

public static final ITemplateFunction CONST
Constructor Detail

Ifeq

public Ifeq()
Method Detail

parseFunction

public java.lang.String parseFunction(char[] src,
                                      int beginIndex,
                                      int endIndex,
                                      IWikiModel model)
Description copied from interface: ITemplateFunction
Parse a template function (like for example {{ #if: ... }}) The result is also a text string in Wikipedia syntax notation which will be parsed again (recursively) in the TemplateParser step.

Specified by:
parseFunction in interface ITemplateFunction
Overrides:
parseFunction in class AbstractTemplateFunction
Parameters:
src - the array of the current Wikipedia source text
beginIndex - the beginning index, inclusive.
endIndex - the ending index, exclusive.
model - the wiki model
Returns:
the result string of this template function or null if the parsing fails or isn't valid
See Also:
TemplateParser#parseTemplate(StringBuffer)