public class XWikiSerializer extends PrintTextListener
org.xwiki.rendering.wikimodel.xwiki.xwiki20.XWikiSerializer2}fRefHandler| Constructor and Description |
|---|
XWikiSerializer(IWikiPrinter printer) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginHeader(int headerLevel,
WikiParameters params)
This method is called to notify about a new section header found in the
document.
|
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 |
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.
|
void |
endHeader(int headerLevel,
WikiParameters params)
This method is called to notify about the end of a section-level header.
|
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 |
endTable(WikiParameters params)
This method notifies about the end of a table in the document.
|
void |
endTableRow(WikiParameters params)
This method is used to notify about the end of a table row.
|
protected String |
getEol() |
void |
onHorizontalLine() |
void |
onLineBreak()
This method is called to notify about a forced line break found in the
text.
|
void |
onReference(String ref)
This method is called to notify that an URI (an implicit reference) was
found in the parsed wiki document.
|
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 |
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".
|
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginDocument, beginFormat, beginInfoBlock, beginList, beginParagraph, beginPropertyBlock, beginPropertyInline, beginQuotation, beginQuotationLine, beginSection, beginSectionContent, endBlock, endDefinitionDescription, endDefinitionList, endDefinitionTerm, endDocument, endFormat, endInfoBlock, endPropertyBlock, endPropertyInline, endQuotation, endQuotationLine, endSection, endSectionContent, endTableCell, isSupportDownload, isSupportImage, newReferenceHandler, onEmptyLines, onEscape, onExtensionBlock, onExtensionInline, onHorizontalLine, onImage, onImage, onMacroBlock, onMacroInline, onNewLine, onReference, onSpace, onVerbatimBlock, onWord, print, println, printlnpublic XWikiSerializer(IWikiPrinter printer)
public void beginHeader(int headerLevel,
WikiParameters params)
IWemListenerDocumentbeginHeader in interface IWemListenerDocumentbeginHeader in class PrintTextListenerheaderLevel - the level of the found header; valid values: 1-6params - wiki parameters associated with theIWemListenerDocument.beginHeader(int, WikiParameters)public void beginListItem()
IWemListenerListIWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods).beginListItem in interface IWemListenerListbeginListItem in class PrintTextListenerIWemListenerList.beginListItem()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)public void endHeader(int headerLevel,
WikiParameters params)
IWemListenerDocumentendHeader in interface IWemListenerDocumentendHeader in class PrintTextListenerheaderLevel - the level of the headerparams - wiki parameters of the headerIWemListenerDocument.endHeader(int, 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 endTable(WikiParameters params)
IWemListenerTableendTable in interface IWemListenerTableendTable in class PrintTextListenerparams - table parametersIWemListenerTable.endTable(WikiParameters)public void endTableRow(WikiParameters params)
IWemListenerTableendTableRow in interface IWemListenerTableendTableRow in class PrintTextListenerparams - parameters of the row.IWemListenerTable.endTableRow(WikiParameters)protected String getEol()
public void onHorizontalLine()
public void onLineBreak()
IWemListenerInlineIWemListenerInline.onNewLine()
notification.onLineBreak in interface IWemListenerInlineonLineBreak in class PrintTextListenerIWemListenerInline.onLineBreak()public void onReference(String ref)
IWemListenerInlineonReference in interface IWemListenerInlineonReference in class PrintTextListenerref - the URIIWemListenerInline.onReference(java.lang.String)public void onSpecialSymbol(String str)
IWemListenerInline
The 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 onVerbatimInline(String str, WikiParameters params)
IWemListenerInlineonVerbatimInline in interface IWemListenerInlineonVerbatimInline in class PrintTextListenerstr - the sequence of non-interpreted charactersparams - TODOIWemListenerInline.onVerbatimInline(java.lang.String,
WikiParameters)Copyright © 2004–2017 XWiki. All rights reserved.