public interface IWemListenerDocument
Examples A: - a very simple document -------------------------------+-------------------------------------------- Source | Result -------------------------------+-------------------------------------------- = First Header = |+ section0 First paragraph. | + document | + seciontContent0 | + section1 | + header1 = First Header | + sectionContent1 | + paragraph = First paragraph. -------------------------------+-------------------------------------------- Examples B: - document with two headers (one section into another) -------------------------------+-------------------------------------------- Source | Result -------------------------------+-------------------------------------------- = First Header = |+ section0 First paragraph. | + document == Second Header == | + sectionContent0 Second paragraph. | + section1 | + header1 = First Header | + sectionContent1 | + paragraph = First paragraph. | + section2 | + header2 = Second Header | + sectionContent2 | + paragraph = Second paragraph. -------------------------------+-------------------------------------------- Examples C: - first section contains two sections of the second level -------------------------------+-------------------------------------------- Source | Result -------------------------------+-------------------------------------------- = First Header = |+ section0 First paragraph. | + document == Second Header == | + sectionContent0 Second paragraph. | + section1 == Third Header == | + header1 = First Header Third paragraph | + sectionContent1 | + paragraph = First paragraph. | + section2 | + header2 = Second Header | + sectionContent2 | + paragraph = Second paragraph. | + section2 | + header2 = Third Header | + sectionContent2 | + paragraph = Third paragraph. -------------------------------+-------------------------------------------- Examples D: - Two sections of the first level -------------------------------+-------------------------------------------- Source | Result -------------------------------+-------------------------------------------- = First Header = |+ section0 First paragraph. | + document == Second Header == | + sectionContent0 Second paragraph. | + section1 == Third Header == | + header1 = First Header Third paragraph | + sectionContent1 = Fourth Header = | + paragraph = First paragraph. Fourth paragr | + section2 | + header2 = Second Header | + sectionContent2 | + paragraph = Second paragraph. | + section2 | + header2 = Third Header | + sectionContent2 | + paragraph = Third paragraph. | + section1 | + header1 = Fourth Header | + sectionContent1 | + paragraph = Fourth paragraph. -------------------------------+--------------------------------------------
Modifier and Type | Method and Description |
---|---|
void |
beginDocument(WikiParameters params)
This method is called to notify about the beginning of the top-level parsed document or about the beginning of an
embedded document (contained in the main one).
|
void |
beginHeader(int headerLevel,
WikiParameters params)
This method is called to notify about a new section header found in the document.
|
void |
beginSection(int docLevel,
int headerLevel,
WikiParameters params)
This method is used to notify about the beginning of a section.
|
void |
beginSectionContent(int docLevel,
int headerLevel,
WikiParameters params)
This method is used to notify about the beginning of a section.
|
void |
endDocument(WikiParameters params)
This method is used to notify about the end of a top-level or an internal document.
|
void |
endHeader(int headerLevel,
WikiParameters params)
This method is called to notify about the end of a section-level header.
|
void |
endSection(int docLevel,
int headerLevel,
WikiParameters params)
This method is used to notify about the end of a document section.
|
void |
endSectionContent(int docLevel,
int headerLevel,
WikiParameters params)
This method is used to notify about the end of a document section.
|
void beginDocument(WikiParameters params)
params
- the list of parameters for this eventvoid beginHeader(int headerLevel, WikiParameters params)
headerLevel
- the level of the found header; valid values: 1-6params
- the list of parameters for this eventvoid beginSection(int docLevel, int headerLevel, WikiParameters params)
docLevel
- the level (depth) of the document containing this sectionheaderLevel
- the level of the header defining this sectionparams
- the list of parameters for this eventvoid beginSectionContent(int docLevel, int headerLevel, WikiParameters params)
docLevel
- the level (depth) of the document containing this sectionheaderLevel
- the level of the header defining this sectionparams
- the list of parameters for this eventvoid endDocument(WikiParameters params)
params
- the list of parameters for this eventvoid endHeader(int headerLevel, WikiParameters params)
headerLevel
- the level of the headerparams
- the list of parameters for this eventvoid endSection(int docLevel, int headerLevel, WikiParameters params)
docLevel
- the level (depth) of the document containing this sectionheaderLevel
- the level of the header defining this sectionparams
- the list of parameters for this eventvoid endSectionContent(int docLevel, int headerLevel, WikiParameters params)
docLevel
- the level (depth) of the document containing this sectionheaderLevel
- the level of the header defining this sectionparams
- the list of parameters for this eventCopyright © 2004–2021 XWiki. All rights reserved.