public class EventDumpListener extends PrintTextListener
fRefHandler| Constructor and Description |
|---|
EventDumpListener(IWikiPrinter printer) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginDefinitionDescription()
This method is used to notify about a definition description.
|
void |
beginDefinitionList(WikiParameters params)
This method is used to notify about a new definition list.
|
void |
beginDefinitionTerm()
A definition term.
|
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 |
beginFormat(WikiFormat format)
This method is called at the beginning of a sequence of in-line elements having the specified formatting
parameters.
|
void |
beginHeader(int headerLevel,
WikiParameters params)
This method is called to notify about a new section header found in the document.
|
void |
beginInfoBlock(String infoType,
WikiParameters params)
This method is used to notify about the beginning of a "typed" paragraph.
|
void |
beginList(WikiParameters params,
boolean ordered)
This method is used to notify about a new list.
|
void |
beginListItem()
This method is used to notify about the beginning of a new item of a
simple list (see
IWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods). |
void |
beginParagraph(WikiParameters params)
Begin of a simple paragraph.
|
void |
beginPropertyBlock(String propertyUri,
boolean doc)
This method is called to notify about the beginning of a new property
found in the parsed document.
|
void |
beginPropertyInline(String str)
This method is called to notify about the beginning of a new inline
property found in the text of the parsed document.
|
void |
beginQuotation(WikiParameters params)
Notifies about the beginning of a quotation elements.
|
void |
beginQuotationLine()
A list containing quotation.
|
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 |
beginTable(WikiParameters params)
This method notifies about the beginning of a new table in the document.
|
void |
beginTableCell(boolean tableHead,
WikiParameters params)
This method is used to notify about the beginning of a new table cell.
|
void |
beginTableRow(WikiParameters params)
This method is used to notify about the beginning of a new table row.
|
protected void |
endBlock()
This method is called at the end of each block element.
|
void |
endDefinitionDescription()
This method is used to notify about the end of a definition description.
|
void |
endDefinitionList(WikiParameters params)
This method is used to notify about the end of a definition list.
|
void |
endDefinitionTerm()
The end of a definition term.
|
void |
endDocument(WikiParameters params)
This method is used to notify about the end of a top-level or an internal document.
|
void |
endFormat(WikiFormat format)
This method is called to notify about the end of a sequence of in-line elements having common formatting
parameters.
|
void |
endHeader(int headerLevel,
WikiParameters params)
This method is called to notify about the end of a section-level header.
|
void |
endInfoBlock(String infoType,
WikiParameters params)
This method is used to notify about the end of a "typed" paragraph.
|
void |
endList(WikiParameters params,
boolean ordered)
This method is used to notify about the end of a list.
|
void |
endListItem()
This method is used to notify about the end of an item of a simple list
(see
IWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods). |
void |
endParagraph(WikiParameters params)
End of a simple paragraph.
|
void |
endPropertyBlock(String propertyUri,
boolean doc)
This method is called to notify about the end of a block property found
in the parsed document.
|
void |
endPropertyInline(String inlineProperty)
This method is called to notify about the end of an inline property found
in the text of the parsed document.
|
void |
endQuotation(WikiParameters params)
Notifies about the end of a quotation element sequence.
|
void |
endQuotationLine()
This method is used to notify about the end of a quotation line.
|
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 |
endTable(WikiParameters params)
This method notifies about the end of a table in the document.
|
void |
endTableCell(boolean tableHead,
WikiParameters params)
This method is used to notify about the end of a table cell.
|
void |
endTableRow(WikiParameters params)
This method is used to notify about the end of a table row.
|
void |
onEmptyLines(int count)
This method is used to notify about a sequence of empty lines.
|
void |
onEscape(String str)
Escaped symbols.
|
void |
onExtensionBlock(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.
|
void |
onExtensionInline(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.
|
void |
onHorizontalLine(WikiParameters params)
This method notifies horizontal lines defined in the text.
|
void |
onLineBreak()
This method is called to notify about a forced line break found in the text.
|
void |
onMacroBlock(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.
|
void |
onMacroInline(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.
|
void |
onNewLine()
This method is called to notify that the parsed block contains a new line sequence (
"\r\n" or "\r" or "\n" character sequence). |
void |
onReference(String ref)
This method is called to notify that an URI (an implicit reference) was found in the parsed wiki document.
|
void |
onSpace(String str)
This method is called to notify about a sequence of space symbols (like
" " or "\t" symbols). |
void |
onSpecialSymbol(String str)
This method is called to notify about a sequence of special characters.
|
void |
onTableCaption(String str)
Notifies the table caption.
|
void |
onVerbatimBlock(String str,
WikiParameters params)
This method notifies about a verbatim (pre-formatted) block defined in
the text
|
void |
onVerbatimInline(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".
|
void |
onWord(String str)
This method is called to notify about a "word" found in the document.
|
protected void |
println(String str) |
isSupportDownload, isSupportImage, newReferenceHandler, onImage, onImage, onReference, print, printlnpublic EventDumpListener(IWikiPrinter printer)
public void beginDefinitionDescription()
IWemListenerListbeginDefinitionDescription in interface IWemListenerListbeginDefinitionDescription in class PrintTextListenerIWemListenerList.beginDefinitionDescription()public void beginDefinitionList(WikiParameters params)
IWemListenerListbeginDefinitionList in interface IWemListenerListbeginDefinitionList in class PrintTextListenerparams - list of parameters for the listIWemListenerList.beginDefinitionList(WikiParameters)public void beginDefinitionTerm()
IWemListenerListbeginDefinitionTerm in interface IWemListenerListbeginDefinitionTerm in class PrintTextListenerIWemListenerList.beginDefinitionTerm()public void beginDocument(WikiParameters params)
IWemListenerDocumentbeginDocument in interface IWemListenerDocumentbeginDocument in class PrintTextListenerparams - the list of parameters for this eventIWemListenerDocument.beginDocument(WikiParameters)public void beginFormat(WikiFormat format)
IWemListenerInlinebeginFormat in interface IWemListenerInlinebeginFormat in class PrintTextListenerformat - the object defining formatting parameters of in-line elements.IWemListenerInline.beginFormat(WikiFormat)public void beginHeader(int headerLevel,
WikiParameters params)
IWemListenerDocumentbeginHeader in interface IWemListenerDocumentbeginHeader in class PrintTextListenerheaderLevel - the level of the found header; valid values: 1-6params - the list of parameters for this eventIWemListenerDocument.beginHeader(int, WikiParameters)public void beginInfoBlock(String infoType, WikiParameters params)
IWemListenerSimpleBlocksbeginInfoBlock in interface IWemListenerSimpleBlocksbeginInfoBlock in class PrintTextListenerinfoType - the "type" of the special blockparams - parameters of this blockIWemListenerSimpleBlocks.beginInfoBlock(String,
WikiParameters)public void beginList(WikiParameters params, boolean ordered)
IWemListenerListIWemListenerList.beginListItem()/IWemListenerList.endListItem() method pair. Items of
lists of this type can contain the following sequence of elements:
beginList in interface IWemListenerListbeginList in class PrintTextListenerparams - parameters of the listordered - if this flag is true then this method
corresponds to a new ordered list ("ol"); otherwise this method
notifies a beginning of an unordered list ("ul")IWemListenerList.beginList(WikiParameters,
boolean)public void beginListItem()
IWemListenerListIWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods).beginListItem in interface IWemListenerListbeginListItem in class PrintTextListenerIWemListenerList.beginListItem()public void beginParagraph(WikiParameters params)
IWemListenerSimpleBlocksbeginParagraph in interface IWemListenerSimpleBlocksbeginParagraph in class PrintTextListenerparams - paragraph parametersIWemListenerSimpleBlocks.beginParagraph(WikiParameters)public void beginPropertyBlock(String propertyUri, boolean doc)
IWemListenerSemanticbeginPropertyBlock in interface IWemListenerSemanticbeginPropertyBlock in class PrintTextListenerpropertyUri - the URI of the semantic block property found in the
documentdoc - this flag is true if the found property contains
a whole document; if this flag is false then expected
property value contains a paragraphIWemListenerSemantic.beginPropertyBlock(java.lang.String,
boolean)public void beginPropertyInline(String str)
IWemListenerSemanticbeginPropertyInline in interface IWemListenerSemanticbeginPropertyInline in class PrintTextListenerstr - the URI of the semantic inline property found in the
documentIWemListenerSemantic.beginPropertyInline(java.lang.String)public void beginQuotation(WikiParameters params)
IWemListenerListbeginQuotation in interface IWemListenerListbeginQuotation in class PrintTextListenerparams - parameters of the listIWemListenerList.beginQuotation(WikiParameters)public void beginQuotationLine()
IWemListenerListbeginQuotationLine in interface IWemListenerListbeginQuotationLine in class PrintTextListenerIWemListenerList.beginQuotationLine()public void beginSection(int docLevel,
int headerLevel,
WikiParameters params)
IWemListenerDocumentbeginSection in interface IWemListenerDocumentbeginSection in class PrintTextListenerdocLevel - the level (depth) of the document containing this sectionheaderLevel - the level of the header defining this sectionparams - the list of parameters for this eventIWemListenerDocument.beginSection(int, int,
WikiParameters)public void beginSectionContent(int docLevel,
int headerLevel,
WikiParameters params)
IWemListenerDocumentbeginSectionContent in interface IWemListenerDocumentbeginSectionContent in class PrintTextListenerdocLevel - the level (depth) of the document containing this sectionheaderLevel - the level of the header defining this sectionparams - the list of parameters for this eventIWemListenerDocument.beginSectionContent(int, int,
WikiParameters)public void beginTable(WikiParameters params)
IWemListenerTablebeginTable in interface IWemListenerTablebeginTable in class PrintTextListenerparams - table parametersIWemListenerTable.beginTable(WikiParameters)public void beginTableCell(boolean tableHead,
WikiParameters params)
IWemListenerTablebeginTableCell in interface IWemListenerTablebeginTableCell in class PrintTextListenertableHead - if this flag is true then 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 cellIWemListenerTable.beginTableCell(boolean,
WikiParameters)public void beginTableRow(WikiParameters params)
IWemListenerTablebeginTableRow in interface IWemListenerTablebeginTableRow in class PrintTextListenerparams - parameters of the row.IWemListenerTable.beginTableRow(WikiParameters)protected void endBlock()
PrintTextListenerendBlock in class PrintTextListenerpublic void endDefinitionDescription()
IWemListenerListendDefinitionDescription in interface IWemListenerListendDefinitionDescription in class PrintTextListenerIWemListenerList.endDefinitionDescription()public void endDefinitionList(WikiParameters params)
IWemListenerListendDefinitionList in interface IWemListenerListendDefinitionList in class PrintTextListenerparams - list of parameters for the listIWemListenerList.endDefinitionList(WikiParameters)public void endDefinitionTerm()
IWemListenerListendDefinitionTerm in interface IWemListenerListendDefinitionTerm in class PrintTextListenerIWemListenerList.endDefinitionTerm()public void endDocument(WikiParameters params)
IWemListenerDocumentendDocument in interface IWemListenerDocumentendDocument in class PrintTextListenerparams - the list of parameters for this eventIWemListenerDocument.endDocument(WikiParameters)public void endFormat(WikiFormat format)
IWemListenerInlineendFormat in interface IWemListenerInlineendFormat in class PrintTextListenerformat - the formatting object defining how contained in-line elements should be formattedIWemListenerInline.endFormat(WikiFormat)public void endHeader(int headerLevel,
WikiParameters params)
IWemListenerDocumentendHeader in interface IWemListenerDocumentendHeader in class PrintTextListenerheaderLevel - the level of the headerparams - the list of parameters for this eventIWemListenerDocument.endHeader(int, WikiParameters)public void endInfoBlock(String infoType, WikiParameters params)
IWemListenerSimpleBlocksendInfoBlock in interface IWemListenerSimpleBlocksendInfoBlock in class PrintTextListenerinfoType - the "type" of the special blockparams - parameters of this blockIWemListenerSimpleBlocks.endInfoBlock(String,
WikiParameters)public void endList(WikiParameters params, boolean ordered)
IWemListenerListendList in interface IWemListenerListendList in class PrintTextListenerparams - parameters of the listordered - if this flag is true then this method
corresponds to a new ordered list ("ol"); otherwise this method
notifies a beginning of an unordered list ("ul")IWemListenerList.endList(WikiParameters,
boolean)public void endListItem()
IWemListenerListIWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods).endListItem in interface IWemListenerListendListItem in class PrintTextListenerIWemListenerList.endListItem()public void endParagraph(WikiParameters params)
IWemListenerSimpleBlocksendParagraph in interface IWemListenerSimpleBlocksendParagraph in class PrintTextListenerparams - paragraph parametersIWemListenerSimpleBlocks.endParagraph(WikiParameters)public void endPropertyBlock(String propertyUri, boolean doc)
IWemListenerSemanticendPropertyBlock in interface IWemListenerSemanticendPropertyBlock in class PrintTextListenerpropertyUri - the URI of the semantic block property found in the
documentdoc - this flag is true if the found property contains
a whole document; otherwise (if this flag is false)
the value of the property is a simple paragraphIWemListenerSemantic.endPropertyBlock(java.lang.String,
boolean)public void endPropertyInline(String inlineProperty)
IWemListenerSemanticendPropertyInline in interface IWemListenerSemanticendPropertyInline in class PrintTextListenerinlineProperty - the URI of the semantic inline property found in the
documentIWemListenerSemantic.endPropertyInline(java.lang.String)public void endQuotation(WikiParameters params)
IWemListenerListendQuotation in interface IWemListenerListendQuotation in class PrintTextListenerparams - parameters of the listIWemListenerList.endQuotation(WikiParameters)public void endQuotationLine()
IWemListenerListendQuotationLine in interface IWemListenerListendQuotationLine in class PrintTextListenerIWemListenerList.endQuotationLine()public void endSection(int docLevel,
int headerLevel,
WikiParameters params)
IWemListenerDocumentendSection in interface IWemListenerDocumentendSection in class PrintTextListenerdocLevel - the level (depth) of the document containing this sectionheaderLevel - the level of the header defining this sectionparams - the list of parameters for this eventIWemListenerDocument.endSection(int, int,
WikiParameters)public void endSectionContent(int docLevel,
int headerLevel,
WikiParameters params)
IWemListenerDocumentendSectionContent in interface IWemListenerDocumentendSectionContent in class PrintTextListenerdocLevel - the level (depth) of the document containing this sectionheaderLevel - the level of the header defining this sectionparams - the list of parameters for this eventIWemListenerDocument.endSectionContent(int, int,
WikiParameters)public void endTable(WikiParameters params)
IWemListenerTableendTable in interface IWemListenerTableendTable in class PrintTextListenerparams - table parametersIWemListenerTable.endTable(WikiParameters)public void endTableCell(boolean tableHead,
WikiParameters params)
IWemListenerTableendTableCell in interface IWemListenerTableendTableCell in class PrintTextListenertableHead - if this flag is true then 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 cellIWemListenerTable.endTableCell(boolean, WikiParameters)public void endTableRow(WikiParameters params)
IWemListenerTableendTableRow in interface IWemListenerTableendTableRow in class PrintTextListenerparams - parameters of the row.IWemListenerTable.endTableRow(WikiParameters)public void onEmptyLines(int count)
IWemListenerSimpleBlocksonEmptyLines in interface IWemListenerSimpleBlocksonEmptyLines in class PrintTextListenercount - the number of empty lines found in the textpublic void onEscape(String str)
IWemListenerInlineonEscape in interface IWemListenerInlineonEscape in class PrintTextListenerstr - the escaped sequence of charactersIWemListenerInline.onEscape(java.lang.String)public void onExtensionBlock(String extensionName, WikiParameters params)
IWemListenerProgrammingonExtensionBlock in interface IWemListenerProgrammingonExtensionBlock in class PrintTextListenerextensionName - the name of the extensionparams - parameters for the extensionpublic void onExtensionInline(String extensionName, WikiParameters params)
IWemListenerProgrammingonExtensionInline in interface IWemListenerProgrammingonExtensionInline in class PrintTextListenerextensionName - the name of the extensionparams - parameters for the extensionpublic void onHorizontalLine(WikiParameters params)
IWemListenerSimpleBlocksonHorizontalLine in interface IWemListenerSimpleBlocksonHorizontalLine in class PrintTextListenerparams - parameters of the horizontal lineIWemListenerSimpleBlocks.onHorizontalLine(WikiParameters
params)public void onLineBreak()
IWemListenerInlineIWemListenerInline.onNewLine()
notification.onLineBreak in interface IWemListenerInlineonLineBreak in class PrintTextListenerIWemListenerInline.onLineBreak()public void onMacroBlock(String macroName, WikiParameters params, String content)
IWemListenerProgrammingonMacroBlock in interface IWemListenerProgrammingonMacroBlock in class PrintTextListenermacroName - the name of the macroparams - parameters of the macrocontent - the content of the macropublic void onMacroInline(String macroName, WikiParameters params, String content)
IWemListenerProgrammingonMacroInline in interface IWemListenerProgrammingonMacroInline in class PrintTextListenermacroName - the name of the macroparams - parameters of the macrocontent - the content of the macropublic void onNewLine()
IWemListenerInline"\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 the IWemListenerInline.onLineBreak() event.onNewLine in interface IWemListenerInlineonNewLine in class PrintTextListenerIWemListenerInline.onNewLine()public void onReference(String ref)
IWemListenerInlineonReference in interface IWemListenerInlineonReference in class PrintTextListenerref - the URIIWemListenerInline.onReference(java.lang.String)public void onSpace(String str)
IWemListenerInline" " or "\t" symbols).onSpace in interface IWemListenerInlineonSpace in class PrintTextListenerstr - the sequence of space charactersIWemListenerInline.onSpace(java.lang.String)public void onSpecialSymbol(String str)
IWemListenerInlineThe full list of possible special symbols:
"!", "\"", "#", "$", "%", "&", "'", "(",
")", "*", "+", ",", "-", ".", "/", ":",
";", "<", "=", ">", "?", "@", "[", "\\",
"]", "^", "_", "`", "{", "|", "}", "~"
onSpecialSymbol in interface IWemListenerInlineonSpecialSymbol in class PrintTextListenerstr - the sequence of special symbolsIWemListenerInline.onSpecialSymbol(java.lang.String)public void onTableCaption(String str)
IWemListenerTableonTableCaption in interface IWemListenerTableonTableCaption in class PrintTextListenerstr - the content of the table captionIWemListenerTable.onTableCaption(java.lang.String)public void onVerbatimBlock(String str, WikiParameters params)
IWemListenerSimpleBlocksonVerbatimBlock in interface IWemListenerSimpleBlocksonVerbatimBlock in class PrintTextListenerstr - the content of the verbatim (pre-formatted) blockparams - parameters of the verbatim blockIWemListenerSimpleBlocks.onVerbatimBlock(String,
WikiParameters)public void onVerbatimInline(String str, WikiParameters params)
IWemListenerInlineonVerbatimInline in interface IWemListenerInlineonVerbatimInline in class PrintTextListenerstr - the sequence of non-interpreted charactersparams - the list of parameters for this eventIWemListenerInline.onVerbatimInline(java.lang.String,
WikiParameters)public void onWord(String str)
IWemListenerInlineWords are formed by the all characters excluding the following ones:
"\t", "\n", "\r", " ",
"!", "\"", "#", "$", "%", "&", "'", "(",
")", "*", "+", ",", "-", ".", "/", ":",
";", "<", "=", ">", "?", "@", "[", "\\",
"]", "^", "_", "`", "{", "|", "}", "~"
onWord in interface IWemListenerInlineonWord in class PrintTextListenerstr - the sequence of characters forming a wordIWemListenerInline.onWord(java.lang.String)protected void println(String str)
println in class PrintTextListenerCopyright © 2004–2017 XWiki. All rights reserved.