|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEventListener
A wiki event listener which will trigger the on.... event
methods during the parsing process.
| Method Summary | |
|---|---|
void |
onHeader(char[] src,
int rawStart,
int rawEnd,
int level)
Notify the listener about a parsed header. |
void |
onTemplate(char[] src,
int rawStart,
int rawEnd)
Notify the listener about a parsed template. |
void |
onWikiLink(char[] src,
int rawStart,
int rawEnd,
java.lang.String suffix)
Notify the listener about a parsed wiki link. |
| Method Detail |
|---|
void onHeader(char[] src,
int rawStart,
int rawEnd,
int level)
src - the currently parsed raw wikitext character arrayrawStart - the start offset of the wiki head excluding the wiki head startrawEnd - the end offset of the wiki head excluding the wiki head end tagslevel - the header level (i.e. == gives level 2;
=== gives level 3;==== gives level
4...)
void onWikiLink(char[] src,
int rawStart,
int rawEnd,
java.lang.String suffix)
src - the currently parsed raw wikitext character arrayrawStart - the start offset of the wiki link excluding the wiki link start
tags '[['rawEnd - the end offset of the wiki link excluding the wiki link end tags
']]'suffix - a suffix string eventually written directly behind the wiki link
(useful for plurals). Example:
Dolphins are [[aquatic mammal]]s that are closely related to [[whale]]s and [[porpoise]]s.
void onTemplate(char[] src,
int rawStart,
int rawEnd)
src - the currently parsed raw wikitext character arrayrawStart - the start offset of the wiki link excluding the wiki template
start tags '{{'rawEnd - the end offset of the wiki link excluding the wiki template end
tags '}}'
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||