|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITemplateFunction
Interface for a template parser function (i.e. {{ #if: ... }}
)
Method Summary | |
---|---|
java.lang.String |
getFunctionDoc()
Return a short description of the implemented template function |
java.lang.String |
parseFunction(java.util.List<java.lang.String> parts,
IWikiModel model,
char[] src,
int beginIndex,
int endIndex)
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. |
Method Detail |
---|
java.lang.String parseFunction(java.util.List<java.lang.String> parts, IWikiModel model, char[] src, int beginIndex, int endIndex) throws java.io.IOException
{{ #if: ... }}
)
The result is also a text string in Wikipedia syntax notation which will be
parsed again (recursively) in the TemplateParser step.
parts
- the parser function arguments (extracted from the wiki text by
splitting the string at the pipe symbol ´|´)model
- the wiki modelsrc
- the array of the current Wikipedia source textbeginIndex
- the beginning index, inclusive.endIndex
- the ending index, exclusive.
null
if
the parsing fails or isn't valid
java.io.IOException
TemplateParser#parseTemplate(StringBuffer)
java.lang.String getFunctionDoc()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |