Package org.xwiki.rendering.wikimodel
Class CompositeListener
- java.lang.Object
-
- org.xwiki.rendering.wikimodel.CompositeListener
-
- All Implemented Interfaces:
IWemListener,IWemListenerDocument,IWemListenerFigure,IWemListenerInline,IWemListenerList,IWemListenerProgramming,IWemListenerSemantic,IWemListenerSimpleBlocks,IWemListenerTable
public class CompositeListener extends Object implements IWemListener
A composite listener which delegates each listener method call to multiple listeners registered in this composite listener.- Since:
- 4.0M1
- Version:
- $Id: 7a512d846e366e96aa7f103af211c192bdb873e3 $
-
-
Constructor Summary
Constructors Constructor Description CompositeListener(IWemListener... listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginDefinitionDescription()This method is used to notify about a definition description.voidbeginDefinitionList(WikiParameters params)This method is used to notify about a new definition list.voidbeginDefinitionTerm()A definition term.voidbeginDocument(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).voidbeginFigure(WikiParameters params)Denotes the beginning of a figure, a container for a table or an image that optionally has a caption.voidbeginFigureCaption(WikiParameters params)Denotes the beginning of a figure caption.voidbeginFormat(WikiFormat format)This method is called at the beginning of a sequence of in-line elements having the specified formatting parameters.voidbeginHeader(int headerLevel, WikiParameters params)This method is called to notify about a new section header found in the document.voidbeginInfoBlock(String infoType, WikiParameters params)This method is used to notify about the beginning of a "typed" paragraph.voidbeginList(WikiParameters params, boolean ordered)This method is used to notify about a new list.voidbeginListItem()This method is used to notify about the beginning of a new item of a simple list (seeIWemListenerList.beginList(WikiParameters, boolean)/IWemListenerList.endList(WikiParameters, boolean)methods).voidbeginListItem(WikiParameters params)This method is used to notify about the beginning of a new item of a simple list (seeIWemListenerList.beginList(WikiParameters, boolean)/IWemListenerList.endList(WikiParameters, boolean)methods).voidbeginParagraph(WikiParameters params)Begin of a simple paragraph.voidbeginPropertyBlock(String propertyUri, boolean doc)This method is called to notify about the beginning of a new property found in the parsed document.voidbeginPropertyInline(String str)This method is called to notify about the beginning of a new inline property found in the text of the parsed document.voidbeginQuotation(WikiParameters params)Notifies about the beginning of a quotation elements.voidbeginQuotationLine()A list containing quotation.voidbeginSection(int docLevel, int headerLevel, WikiParameters params)This method is used to notify about the beginning of a section.voidbeginSectionContent(int docLevel, int headerLevel, WikiParameters params)This method is used to notify about the beginning of a section.voidbeginTable(WikiParameters params)This method notifies about the beginning of a new table in the document.voidbeginTableCell(boolean tableHead, WikiParameters params)This method is used to notify about the beginning of a new table cell.voidbeginTableRow(WikiParameters params)This method is used to notify about the beginning of a new table row.voidendDefinitionDescription()This method is used to notify about the end of a definition description.voidendDefinitionList(WikiParameters params)This method is used to notify about the end of a definition list.voidendDefinitionTerm()The end of a definition term.voidendDocument(WikiParameters params)This method is used to notify about the end of a top-level or an internal document.voidendFigure(WikiParameters params)Denotes the end of a figure, a container for a table or an image that optionally has a caption.voidendFigureCaption(WikiParameters params)Denotes the beginning of a figure caption.voidendFormat(WikiFormat format)This method is called to notify about the end of a sequence of in-line elements having common formatting parameters.voidendHeader(int headerLevel, WikiParameters params)This method is called to notify about the end of a section-level header.voidendInfoBlock(String infoType, WikiParameters params)This method is used to notify about the end of a "typed" paragraph.voidendList(WikiParameters params, boolean ordered)This method is used to notify about the end of a list.voidendListItem()This method is used to notify about the end of an item of a simple list (seeIWemListenerList.beginList(WikiParameters, boolean)/IWemListenerList.endList(WikiParameters, boolean)methods).voidendListItem(WikiParameters params)This method is used to notify about the end of an item of a simple list (seeIWemListenerList.beginList(WikiParameters, boolean)/IWemListenerList.endList(WikiParameters, boolean)methods).voidendParagraph(WikiParameters params)End of a simple paragraph.voidendPropertyBlock(String propertyUri, boolean doc)This method is called to notify about the end of a block property found in the parsed document.voidendPropertyInline(String inlineProperty)This method is called to notify about the end of an inline property found in the text of the parsed document.voidendQuotation(WikiParameters params)Notifies about the end of a quotation element sequence.voidendQuotationLine()This method is used to notify about the end of a quotation line.voidendSection(int docLevel, int headerLevel, WikiParameters params)This method is used to notify about the end of a document section.voidendSectionContent(int docLevel, int headerLevel, WikiParameters params)This method is used to notify about the end of a document section.voidendTable(WikiParameters params)This method notifies about the end of a table in the document.voidendTableCell(boolean tableHead, WikiParameters params)This method is used to notify about the end of a table cell.voidendTableRow(WikiParameters params)This method is used to notify about the end of a table row.voidonEmptyLines(int count)This method is used to notify about a sequence of empty lines.voidonEscape(String str)Escaped symbols.voidonExtensionBlock(String extensionName, WikiParameters params)This method is used to notify about a new extension which CAN generate block elements as a result of its interpretation.voidonExtensionInline(String extensionName, WikiParameters params)This method is used to notify about a new extension which CAN generate in-line elements as a result of its interpretation.voidonHorizontalLine(WikiParameters params)This method notifies horizontal lines defined in the text.voidonImage(String ref)This method is called to notify that an free standing image was found in the parsed wiki document.voidonImage(WikiReference ref)This method is called to notify that a structured reference was found in the textvoidonLineBreak()This method is called to notify about a forced line break found in the text.voidonMacroBlock(String macroName, WikiParameters params, String content)This method is used to notify about a new in-line macro which CAN generate block elements as a result of its interpretation.voidonMacroInline(String macroName, WikiParameters params, String content)This method is used to notify about a new in-line macro which CAN generate only in-line elements as a result of its interpretation.voidonNewLine()This method is called to notify that the parsed block contains a new line sequence ("\r\n"or"\r"or"\n"character sequence).voidonReference(String ref)This method is called to notify that an URI (an implicit reference) was found in the parsed wiki document.voidonReference(WikiReference ref)This method is called to notify that a structured reference was found in the textvoidonSpace(String str)This method is called to notify about a sequence of space symbols (like" "or"\t"symbols).voidonSpecialSymbol(String str)This method is called to notify about a sequence of special characters.voidonTableCaption(String str)Notifies the table caption.voidonVerbatimBlock(String str, WikiParameters params)This method notifies about a verbatim (pre-formatted) block defined in the textvoidonVerbatimInline(String str, WikiParameters params)This method is called to notify about not-interpreted in-line sequence of characters which should be represented in the final text "as is".voidonWord(String str)This method is called to notify about a "word" found in the document.
-
-
-
Constructor Detail
-
CompositeListener
public CompositeListener(IWemListener... listeners)
- Parameters:
listeners- an array of listeners to which all method calls will be delegated
-
-
Method Detail
-
beginDefinitionDescription
public void beginDefinitionDescription()
Description copied from interface:IWemListenerListThis method is used to notify about a definition description. All definition descriptions are contained in definition lists and can contain text, embedded lists or an embedded document.- Specified by:
beginDefinitionDescriptionin interfaceIWemListenerList- See Also:
IWemListenerList.beginDefinitionDescription()
-
beginDefinitionList
public void beginDefinitionList(WikiParameters params)
Description copied from interface:IWemListenerListThis method is used to notify about a new definition list.- Specified by:
beginDefinitionListin interfaceIWemListenerList- Parameters:
params- list of parameters for the list- See Also:
IWemListenerList.beginDefinitionList(WikiParameters)
-
beginDefinitionTerm
public void beginDefinitionTerm()
Description copied from interface:IWemListenerListA definition term. Definition terms can contain only formatted texts. Note that it is impossible to have an embedded list or a document inside of definition terms.- Specified by:
beginDefinitionTermin interfaceIWemListenerList- See Also:
IWemListenerList.beginDefinitionTerm()
-
beginDocument
public void beginDocument(WikiParameters params)
Description copied from interface:IWemListenerDocumentThis 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).- Specified by:
beginDocumentin interfaceIWemListenerDocument- Parameters:
params- the list of parameters for this event- See Also:
IWemListenerDocument.beginDocument(WikiParameters)
-
beginFormat
public void beginFormat(WikiFormat format)
Description copied from interface:IWemListenerInlineThis method is called at the beginning of a sequence of in-line elements having the specified formatting parameters.- Specified by:
beginFormatin interfaceIWemListenerInline- Parameters:
format- the object defining formatting parameters of in-line elements.- See Also:
IWemListenerInline.beginFormat(WikiFormat)
-
beginHeader
public void beginHeader(int headerLevel, WikiParameters params)Description copied from interface:IWemListenerDocumentThis method is called to notify about a new section header found in the document.- Specified by:
beginHeaderin interfaceIWemListenerDocument- Parameters:
headerLevel- the level of the found header; valid values: 1-6params- the list of parameters for this event- See Also:
IWemListenerDocument.beginHeader(int, WikiParameters)
-
beginInfoBlock
public void beginInfoBlock(String infoType, WikiParameters params)
Description copied from interface:IWemListenerSimpleBlocksThis method is used to notify about the beginning of a "typed" paragraph. Some wiki syntaxes have special markups to define simple block elements corresponding to "warnings", "info blocks" and so on. Blocks of this type can have formatted inline elements.- Specified by:
beginInfoBlockin interfaceIWemListenerSimpleBlocks- Parameters:
infoType- the "type" of the special blockparams- parameters of this block- See Also:
IWemListenerSimpleBlocks.beginInfoBlock(String, WikiParameters)
-
beginList
public void beginList(WikiParameters params, boolean ordered)
Description copied from interface:IWemListenerListThis method is used to notify about a new list. Each list contain at least one list item. All list items are notified using theIWemListenerList.beginListItem()/IWemListenerList.endListItem()method pair. Items of lists of this type can contain the following sequence of elements:- formatted text - the text can be empty; in this case it is not notified
- Just after the text the list item can have:
- an embedded list - in this way it is possible to build hierarchical structures
- an embedded document - it should be defined explicitly and it can have all valid elements of the top-level document
- Specified by:
beginListin interfaceIWemListenerList- Parameters:
params- parameters of the listordered- if this flag istruethen this method corresponds to a new ordered list ("ol"); otherwise this method notifies a beginning of an unordered list ("ul")- See Also:
IWemListenerList.beginList(WikiParameters, boolean)
-
beginListItem
public void beginListItem()
Description copied from interface:IWemListenerListThis method is used to notify about the beginning of a new item of a simple list (seeIWemListenerList.beginList(WikiParameters, boolean)/IWemListenerList.endList(WikiParameters, boolean)methods).- Specified by:
beginListItemin interfaceIWemListenerList- See Also:
IWemListenerList.beginListItem()
-
beginListItem
public void beginListItem(WikiParameters params)
Description copied from interface:IWemListenerListThis method is used to notify about the beginning of a new item of a simple list (seeIWemListenerList.beginList(WikiParameters, boolean)/IWemListenerList.endList(WikiParameters, boolean)methods).- Specified by:
beginListItemin interfaceIWemListenerList- See Also:
IWemListenerList.endListItem(WikiParameters)
-
beginParagraph
public void beginParagraph(WikiParameters params)
Description copied from interface:IWemListenerSimpleBlocksBegin of a simple paragraph. Paragraphs can contain only formatted inline elements.- Specified by:
beginParagraphin interfaceIWemListenerSimpleBlocks- Parameters:
params- paragraph parameters- See Also:
IWemListenerSimpleBlocks.beginParagraph(WikiParameters)
-
beginPropertyBlock
public void beginPropertyBlock(String propertyUri, boolean doc)
Description copied from interface:IWemListenerSemanticThis method is called to notify about the beginning of a new property found in the parsed document.- Specified by:
beginPropertyBlockin interfaceIWemListenerSemantic- Parameters:
propertyUri- the URI of the semantic block property found in the documentdoc- this flag istrueif the found property contains a whole document; if this flag isfalsethen expected property value contains a paragraph- See Also:
IWemListenerSemantic.beginPropertyBlock(java.lang.String, boolean)
-
beginPropertyInline
public void beginPropertyInline(String str)
Description copied from interface:IWemListenerSemanticThis method is called to notify about the beginning of a new inline property found in the text of the parsed document.- Specified by:
beginPropertyInlinein interfaceIWemListenerSemantic- Parameters:
str- the URI of the semantic inline property found in the document- See Also:
IWemListenerSemantic.beginPropertyInline(java.lang.String)
-
beginQuotation
public void beginQuotation(WikiParameters params)
Description copied from interface:IWemListenerListNotifies about the beginning of a quotation elements.- Specified by:
beginQuotationin interfaceIWemListenerList- Parameters:
params- parameters of the list- See Also:
IWemListenerList.beginQuotation(WikiParameters)
-
beginQuotationLine
public void beginQuotationLine()
Description copied from interface:IWemListenerListA list containing quotation. This is a part of quotation lists. Each quotation item can have other quotation lists.- Specified by:
beginQuotationLinein interfaceIWemListenerList- See Also:
IWemListenerList.beginQuotationLine()
-
beginSection
public void beginSection(int docLevel, int headerLevel, WikiParameters params)Description copied from interface:IWemListenerDocumentThis method is used to notify about the beginning of a section. Document sections delimits a set of structural elements at the same "level". A new level starts with a new document or a new header.- Specified by:
beginSectionin interfaceIWemListenerDocument- Parameters:
docLevel- the level (depth) of the document containing this sectionheaderLevel- the level of the header defining this sectionparams- the list of parameters for this event- See Also:
IWemListenerDocument.beginSection(int, int, WikiParameters)
-
beginSectionContent
public void beginSectionContent(int docLevel, int headerLevel, WikiParameters params)Description copied from interface:IWemListenerDocumentThis method is used to notify about the beginning of a section. Document sections delimits a set of structural elements at the same "level". A new level starts with a new document or a new header.- Specified by:
beginSectionContentin interfaceIWemListenerDocument- Parameters:
docLevel- the level (depth) of the document containing this sectionheaderLevel- the level of the header defining this sectionparams- the list of parameters for this event- See Also:
IWemListenerDocument.beginSectionContent(int, int, WikiParameters)
-
beginTable
public void beginTable(WikiParameters params)
Description copied from interface:IWemListenerTableThis method notifies about the beginning of a new table in the document.- Specified by:
beginTablein interfaceIWemListenerTable- Parameters:
params- table parameters- See Also:
IWemListenerTable.beginTable(WikiParameters)
-
beginTableCell
public void beginTableCell(boolean tableHead, WikiParameters params)Description copied from interface:IWemListenerTableThis method is used to notify about the beginning of a new table cell.- Specified by:
beginTableCellin interfaceIWemListenerTable- Parameters:
tableHead- if this flag istruethen the reported cell corresponds to the table head ("th" element); otherwise it should be considered as a normal table cell ("td" element).params- parameters of this cell- See Also:
IWemListenerTable.beginTableCell(boolean, WikiParameters)
-
beginTableRow
public void beginTableRow(WikiParameters params)
Description copied from interface:IWemListenerTableThis method is used to notify about the beginning of a new table row.- Specified by:
beginTableRowin interfaceIWemListenerTable- Parameters:
params- parameters of the row.- See Also:
IWemListenerTable.beginTableRow(WikiParameters)
-
endDefinitionDescription
public void endDefinitionDescription()
Description copied from interface:IWemListenerListThis method is used to notify about the end of a definition description.- Specified by:
endDefinitionDescriptionin interfaceIWemListenerList- See Also:
IWemListenerList.endDefinitionDescription()
-
endDefinitionList
public void endDefinitionList(WikiParameters params)
Description copied from interface:IWemListenerListThis method is used to notify about the end of a definition list.- Specified by:
endDefinitionListin interfaceIWemListenerList- Parameters:
params- list of parameters for the list- See Also:
IWemListenerList.endDefinitionList(WikiParameters)
-
endDefinitionTerm
public void endDefinitionTerm()
Description copied from interface:IWemListenerListThe end of a definition term.- Specified by:
endDefinitionTermin interfaceIWemListenerList- See Also:
IWemListenerList.endDefinitionTerm()
-
endDocument
public void endDocument(WikiParameters params)
Description copied from interface:IWemListenerDocumentThis method is used to notify about the end of a top-level or an internal document.- Specified by:
endDocumentin interfaceIWemListenerDocument- Parameters:
params- the list of parameters for this event- See Also:
IWemListenerDocument.endDocument(WikiParameters)
-
endFormat
public void endFormat(WikiFormat format)
Description copied from interface:IWemListenerInlineThis method is called to notify about the end of a sequence of in-line elements having common formatting parameters.- Specified by:
endFormatin interfaceIWemListenerInline- Parameters:
format- the formatting object defining how contained in-line elements should be formatted- See Also:
IWemListenerInline.endFormat(WikiFormat)
-
endHeader
public void endHeader(int headerLevel, WikiParameters params)Description copied from interface:IWemListenerDocumentThis method is called to notify about the end of a section-level header.- Specified by:
endHeaderin interfaceIWemListenerDocument- Parameters:
headerLevel- the level of the headerparams- the list of parameters for this event- See Also:
IWemListenerDocument.endHeader(int, WikiParameters)
-
endInfoBlock
public void endInfoBlock(String infoType, WikiParameters params)
Description copied from interface:IWemListenerSimpleBlocksThis method is used to notify about the end of a "typed" paragraph.- Specified by:
endInfoBlockin interfaceIWemListenerSimpleBlocks- Parameters:
infoType- the "type" of the special blockparams- parameters of this block- See Also:
IWemListenerSimpleBlocks.endInfoBlock(String, WikiParameters)
-
endList
public void endList(WikiParameters params, boolean ordered)
Description copied from interface:IWemListenerListThis method is used to notify about the end of a list.- Specified by:
endListin interfaceIWemListenerList- Parameters:
params- parameters of the listordered- if this flag istruethen this method corresponds to a new ordered list ("ol"); otherwise this method notifies a beginning of an unordered list ("ul")- See Also:
IWemListenerList.endList(WikiParameters, boolean)
-
endListItem
public void endListItem()
Description copied from interface:IWemListenerListThis method is used to notify about the end of an item of a simple list (seeIWemListenerList.beginList(WikiParameters, boolean)/IWemListenerList.endList(WikiParameters, boolean)methods).- Specified by:
endListItemin interfaceIWemListenerList- See Also:
IWemListenerList.endListItem()
-
endListItem
public void endListItem(WikiParameters params)
Description copied from interface:IWemListenerListThis method is used to notify about the end of an item of a simple list (seeIWemListenerList.beginList(WikiParameters, boolean)/IWemListenerList.endList(WikiParameters, boolean)methods).- Specified by:
endListItemin interfaceIWemListenerList- See Also:
IWemListenerList.beginListItem(WikiParameters)
-
endParagraph
public void endParagraph(WikiParameters params)
Description copied from interface:IWemListenerSimpleBlocksEnd of a simple paragraph.- Specified by:
endParagraphin interfaceIWemListenerSimpleBlocks- Parameters:
params- paragraph parameters- See Also:
IWemListenerSimpleBlocks.endParagraph(WikiParameters)
-
endPropertyBlock
public void endPropertyBlock(String propertyUri, boolean doc)
Description copied from interface:IWemListenerSemanticThis method is called to notify about the end of a block property found in the parsed document.- Specified by:
endPropertyBlockin interfaceIWemListenerSemantic- Parameters:
propertyUri- the URI of the semantic block property found in the documentdoc- this flag istrueif the found property contains a whole document; otherwise (if this flag isfalse) the value of the property is a simple paragraph- See Also:
IWemListenerSemantic.endPropertyBlock(java.lang.String, boolean)
-
endPropertyInline
public void endPropertyInline(String inlineProperty)
Description copied from interface:IWemListenerSemanticThis method is called to notify about the end of an inline property found in the text of the parsed document.- Specified by:
endPropertyInlinein interfaceIWemListenerSemantic- Parameters:
inlineProperty- the URI of the semantic inline property found in the document- See Also:
IWemListenerSemantic.endPropertyInline(java.lang.String)
-
endQuotation
public void endQuotation(WikiParameters params)
Description copied from interface:IWemListenerListNotifies about the end of a quotation element sequence.- Specified by:
endQuotationin interfaceIWemListenerList- Parameters:
params- parameters of the list- See Also:
IWemListenerList.endQuotation(WikiParameters)
-
endQuotationLine
public void endQuotationLine()
Description copied from interface:IWemListenerListThis method is used to notify about the end of a quotation line.- Specified by:
endQuotationLinein interfaceIWemListenerList- See Also:
IWemListenerList.endQuotationLine()
-
endSection
public void endSection(int docLevel, int headerLevel, WikiParameters params)Description copied from interface:IWemListenerDocumentThis method is used to notify about the end of a document section.- Specified by:
endSectionin interfaceIWemListenerDocument- Parameters:
docLevel- the level (depth) of the document containing this sectionheaderLevel- the level of the header defining this sectionparams- the list of parameters for this event- See Also:
IWemListenerDocument.endSection(int, int, WikiParameters)
-
endSectionContent
public void endSectionContent(int docLevel, int headerLevel, WikiParameters params)Description copied from interface:IWemListenerDocumentThis method is used to notify about the end of a document section.- Specified by:
endSectionContentin interfaceIWemListenerDocument- Parameters:
docLevel- the level (depth) of the document containing this sectionheaderLevel- the level of the header defining this sectionparams- the list of parameters for this event- See Also:
IWemListenerDocument.endSectionContent(int, int, WikiParameters)
-
endTable
public void endTable(WikiParameters params)
Description copied from interface:IWemListenerTableThis method notifies about the end of a table in the document.- Specified by:
endTablein interfaceIWemListenerTable- Parameters:
params- table parameters- See Also:
IWemListenerTable.endTable(WikiParameters)
-
endTableCell
public void endTableCell(boolean tableHead, WikiParameters params)Description copied from interface:IWemListenerTableThis method is used to notify about the end of a table cell.- Specified by:
endTableCellin interfaceIWemListenerTable- Parameters:
tableHead- if this flag istruethen the reported cell corresponds to the table head ("th" element); otherwise it should be considered as a normal table cell ("td" element).params- parameters of this cell- See Also:
IWemListenerTable.endTableCell(boolean, WikiParameters)
-
endTableRow
public void endTableRow(WikiParameters params)
Description copied from interface:IWemListenerTableThis method is used to notify about the end of a table row.- Specified by:
endTableRowin interfaceIWemListenerTable- Parameters:
params- parameters of the row.- See Also:
IWemListenerTable.endTableRow(WikiParameters)
-
onEmptyLines
public void onEmptyLines(int count)
Description copied from interface:IWemListenerSimpleBlocksThis method is used to notify about a sequence of empty lines. This event can be interpreted as an "empty paragraph".- Specified by:
onEmptyLinesin interfaceIWemListenerSimpleBlocks- Parameters:
count- the number of empty lines found in the text
-
onEscape
public void onEscape(String str)
Description copied from interface:IWemListenerInlineEscaped symbols. More frequently the given string has just one symbol.- Specified by:
onEscapein interfaceIWemListenerInline- Parameters:
str- the escaped sequence of characters- See Also:
IWemListenerInline.onEscape(java.lang.String)
-
onExtensionBlock
public void onExtensionBlock(String extensionName, WikiParameters params)
Description copied from interface:IWemListenerProgrammingThis method is used to notify about a new extension which CAN generate block elements as a result of its interpretation.- Specified by:
onExtensionBlockin interfaceIWemListenerProgramming- Parameters:
extensionName- the name of the extensionparams- parameters for the extension- See Also:
IWemListenerProgramming.onExtensionBlock(java.lang.String, WikiParameters)
-
onExtensionInline
public void onExtensionInline(String extensionName, WikiParameters params)
Description copied from interface:IWemListenerProgrammingThis method is used to notify about a new extension which CAN generate in-line elements as a result of its interpretation. This method CAN NOT generate block elements.- Specified by:
onExtensionInlinein interfaceIWemListenerProgramming- Parameters:
extensionName- the name of the extensionparams- parameters for the extension- See Also:
IWemListenerProgramming.onExtensionInline(java.lang.String, WikiParameters)
-
onHorizontalLine
public void onHorizontalLine(WikiParameters params)
Description copied from interface:IWemListenerSimpleBlocksThis method notifies horizontal lines defined in the text.- Specified by:
onHorizontalLinein interfaceIWemListenerSimpleBlocks- Parameters:
params- parameters of the horizontal line- See Also:
IWemListenerSimpleBlocks.onHorizontalLine(WikiParameters params)
-
onImage
public void onImage(String ref)
Description copied from interface:IWemListenerInlineThis method is called to notify that an free standing image was found in the parsed wiki document.- Specified by:
onImagein interfaceIWemListenerInline- Parameters:
ref- the reference the reference- See Also:
IWemListenerInline.onImage(java.lang.String)
-
onImage
public void onImage(WikiReference ref)
Description copied from interface:IWemListenerInlineThis method is called to notify that a structured reference was found in the text- Specified by:
onImagein interfaceIWemListenerInline- Parameters:
ref- the reference the reference- See Also:
IWemListenerInline.onImage(WikiReference)
-
onLineBreak
public void onLineBreak()
Description copied from interface:IWemListenerInlineThis method is called to notify about a forced line break found in the text. Note that the line break symbol can be found in the middle of a "physical" line so this event is not equals to theIWemListenerInline.onNewLine()notification.- Specified by:
onLineBreakin interfaceIWemListenerInline- See Also:
IWemListenerInline.onLineBreak()
-
onMacroBlock
public void onMacroBlock(String macroName, WikiParameters params, String content)
Description copied from interface:IWemListenerProgrammingThis method is used to notify about a new in-line macro which CAN generate block elements as a result of its interpretation.- Specified by:
onMacroBlockin interfaceIWemListenerProgramming- Parameters:
macroName- the name of the macroparams- parameters of the macrocontent- the content of the macro
-
onMacroInline
public void onMacroInline(String macroName, WikiParameters params, String content)
Description copied from interface:IWemListenerProgrammingThis method is used to notify about a new in-line macro which CAN generate only in-line elements as a result of its interpretation. This method CAN NOT generate block elements.- Specified by:
onMacroInlinein interfaceIWemListenerProgramming- Parameters:
macroName- the name of the macroparams- parameters of the macrocontent- the content of the macro
-
onNewLine
public void onNewLine()
Description copied from interface:IWemListenerInlineThis method is called to notify that the parsed block contains a new line sequence ("\r\n"or"\r"or"\n"character sequence). Note that the new line symbols are not the same as a forced line break sequence notified by theIWemListenerInline.onLineBreak()event.- Specified by:
onNewLinein interfaceIWemListenerInline- See Also:
IWemListenerInline.onNewLine()
-
onReference
public void onReference(String ref)
Description copied from interface:IWemListenerInlineThis method is called to notify that an URI (an implicit reference) was found in the parsed wiki document.- Specified by:
onReferencein interfaceIWemListenerInline- Parameters:
ref- the URI- See Also:
IWemListenerInline.onReference(java.lang.String)
-
onReference
public void onReference(WikiReference ref)
Description copied from interface:IWemListenerInlineThis method is called to notify that a structured reference was found in the text- Specified by:
onReferencein interfaceIWemListenerInline- Parameters:
ref- the reference the reference
-
onSpace
public void onSpace(String str)
Description copied from interface:IWemListenerInlineThis method is called to notify about a sequence of space symbols (like" "or"\t"symbols).- Specified by:
onSpacein interfaceIWemListenerInline- Parameters:
str- the sequence of space characters- See Also:
IWemListenerInline.onSpace(java.lang.String)
-
onSpecialSymbol
public void onSpecialSymbol(String str)
Description copied from interface:IWemListenerInlineThis method is called to notify about a sequence of special characters. Special symbols are characters which are not interpreted as a part of a word (letters or digits) or as a space. Note that the handling of these symbols requires special attention because these symbols most frequently used to define text formatting. Various wiki syntaxes use combinations of these sequences to define structural elements in wiki documents.The full list of possible special symbols:
"!", "\"", "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "<", "=", ">", "?", "@", "[", "\\", "]", "^", "_", "`", "{", "|", "}", "~"- Specified by:
onSpecialSymbolin interfaceIWemListenerInline- Parameters:
str- the sequence of special symbols- See Also:
IWemListenerInline.onSpecialSymbol(java.lang.String)
-
onTableCaption
public void onTableCaption(String str)
Description copied from interface:IWemListenerTableNotifies the table caption.- Specified by:
onTableCaptionin interfaceIWemListenerTable- Parameters:
str- the content of the table caption- See Also:
IWemListenerTable.onTableCaption(java.lang.String)
-
onVerbatimBlock
public void onVerbatimBlock(String str, WikiParameters params)
Description copied from interface:IWemListenerSimpleBlocksThis method notifies about a verbatim (pre-formatted) block defined in the text- Specified by:
onVerbatimBlockin interfaceIWemListenerSimpleBlocks- Parameters:
str- the content of the verbatim (pre-formatted) blockparams- parameters of the verbatim block- See Also:
IWemListenerSimpleBlocks.onVerbatimBlock(String, WikiParameters)
-
onVerbatimInline
public void onVerbatimInline(String str, WikiParameters params)
Description copied from interface:IWemListenerInlineThis method is called to notify about not-interpreted in-line sequence of characters which should be represented in the final text "as is".- Specified by:
onVerbatimInlinein interfaceIWemListenerInline- Parameters:
str- the sequence of non-interpreted charactersparams- the list of parameters for this event- See Also:
IWemListenerInline.onVerbatimInline(java.lang.String, WikiParameters)
-
onWord
public void onWord(String str)
Description copied from interface:IWemListenerInlineThis method is called to notify about a "word" found in the document. Words are formed by all characters which are not considered as spaces or special symbols.Words are formed by the all characters excluding the following ones:
"\t", "\n", "\r", " ", "!", "\"", "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "<", "=", ">", "?", "@", "[", "\\", "]", "^", "_", "`", "{", "|", "}", "~"- Specified by:
onWordin interfaceIWemListenerInline- Parameters:
str- the sequence of characters forming a word- See Also:
IWemListenerInline.onWord(java.lang.String)
-
beginFigure
public void beginFigure(WikiParameters params)
Description copied from interface:IWemListenerFigureDenotes the beginning of a figure, a container for a table or an image that optionally has a caption.- Specified by:
beginFigurein interfaceIWemListenerFigure- Parameters:
params- Parameters for the figure
-
endFigure
public void endFigure(WikiParameters params)
Description copied from interface:IWemListenerFigureDenotes the end of a figure, a container for a table or an image that optionally has a caption.- Specified by:
endFigurein interfaceIWemListenerFigure- Parameters:
params- Parameters for the figure
-
beginFigureCaption
public void beginFigureCaption(WikiParameters params)
Description copied from interface:IWemListenerFigureDenotes the beginning of a figure caption. Must be inside a figure.- Specified by:
beginFigureCaptionin interfaceIWemListenerFigure- Parameters:
params- Parameters for the figure caption
-
endFigureCaption
public void endFigureCaption(WikiParameters params)
Description copied from interface:IWemListenerFigureDenotes the beginning of a figure caption. Must be inside a figure.- Specified by:
endFigureCaptionin interfaceIWemListenerFigure- Parameters:
params- Parameters for the figure caption
-
-