public class XWikiSerializer extends PrintTextListener
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 |
beginListItem(WikiParameters params)
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 |
endListItem(WikiParameters params)
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, println
public XWikiSerializer(IWikiPrinter printer)
public void beginHeader(int headerLevel, WikiParameters params)
IWemListenerDocument
beginHeader
in interface IWemListenerDocument
beginHeader
in class PrintTextListener
headerLevel
- the level of the found header; valid values: 1-6params
- the list of parameters for this eventIWemListenerDocument.beginHeader(int, WikiParameters)
public void beginListItem()
IWemListenerList
IWemListenerList.beginList(WikiParameters, boolean)
/
IWemListenerList.endList(WikiParameters, boolean)
methods).beginListItem
in interface IWemListenerList
beginListItem
in class PrintTextListener
IWemListenerList.beginListItem()
public void beginListItem(WikiParameters params)
IWemListenerList
IWemListenerList.beginList(WikiParameters, boolean)
/
IWemListenerList.endList(WikiParameters, boolean)
methods).beginListItem
in interface IWemListenerList
beginListItem
in class PrintTextListener
IWemListenerList.endListItem(WikiParameters)
public void beginTable(WikiParameters params)
IWemListenerTable
beginTable
in interface IWemListenerTable
beginTable
in class PrintTextListener
params
- table parametersIWemListenerTable.beginTable(WikiParameters)
public void beginTableCell(boolean tableHead, WikiParameters params)
IWemListenerTable
beginTableCell
in interface IWemListenerTable
beginTableCell
in class PrintTextListener
tableHead
- 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)
IWemListenerTable
beginTableRow
in interface IWemListenerTable
beginTableRow
in class PrintTextListener
params
- parameters of the row.IWemListenerTable.beginTableRow(WikiParameters)
public void endHeader(int headerLevel, WikiParameters params)
IWemListenerDocument
endHeader
in interface IWemListenerDocument
endHeader
in class PrintTextListener
headerLevel
- the level of the headerparams
- the list of parameters for this eventIWemListenerDocument.endHeader(int, WikiParameters)
public void endList(WikiParameters params, boolean ordered)
IWemListenerList
endList
in interface IWemListenerList
endList
in class PrintTextListener
params
- 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()
IWemListenerList
IWemListenerList.beginList(WikiParameters, boolean)
/
IWemListenerList.endList(WikiParameters, boolean)
methods).endListItem
in interface IWemListenerList
endListItem
in class PrintTextListener
IWemListenerList.endListItem()
public void endListItem(WikiParameters params)
IWemListenerList
IWemListenerList.beginList(WikiParameters, boolean)
/
IWemListenerList.endList(WikiParameters, boolean)
methods).endListItem
in interface IWemListenerList
endListItem
in class PrintTextListener
IWemListenerList.beginListItem(WikiParameters)
public void endParagraph(WikiParameters params)
IWemListenerSimpleBlocks
endParagraph
in interface IWemListenerSimpleBlocks
endParagraph
in class PrintTextListener
params
- paragraph parametersIWemListenerSimpleBlocks.endParagraph(WikiParameters)
public void endTable(WikiParameters params)
IWemListenerTable
endTable
in interface IWemListenerTable
endTable
in class PrintTextListener
params
- table parametersIWemListenerTable.endTable(WikiParameters)
public void endTableRow(WikiParameters params)
IWemListenerTable
endTableRow
in interface IWemListenerTable
endTableRow
in class PrintTextListener
params
- parameters of the row.IWemListenerTable.endTableRow(WikiParameters)
protected String getEol()
public void onHorizontalLine()
public void onLineBreak()
IWemListenerInline
IWemListenerInline.onNewLine()
notification.onLineBreak
in interface IWemListenerInline
onLineBreak
in class PrintTextListener
IWemListenerInline.onLineBreak()
public void onReference(String ref)
IWemListenerInline
onReference
in interface IWemListenerInline
onReference
in class PrintTextListener
ref
- the URIIWemListenerInline.onReference(java.lang.String)
public void onSpecialSymbol(String str)
IWemListenerInline
The full list of possible special symbols:
"!", "\"", "#", "$", "%", "&", "'", "(",
")", "*", "+", ",", "-", ".", "/", ":",
";", "<", "=", ">", "?", "@", "[", "\\",
"]", "^", "_", "`", "{", "|", "}", "~"
onSpecialSymbol
in interface IWemListenerInline
onSpecialSymbol
in class PrintTextListener
str
- the sequence of special symbolsIWemListenerInline.onSpecialSymbol(java.lang.String)
public void onTableCaption(String str)
IWemListenerTable
onTableCaption
in interface IWemListenerTable
onTableCaption
in class PrintTextListener
str
- the content of the table captionIWemListenerTable.onTableCaption(java.lang.String)
public void onVerbatimInline(String str, WikiParameters params)
IWemListenerInline
onVerbatimInline
in interface IWemListenerInline
onVerbatimInline
in class PrintTextListener
str
- the sequence of non-interpreted charactersparams
- the list of parameters for this eventIWemListenerInline.onVerbatimInline(java.lang.String,
WikiParameters)
Copyright © 2004–2021 XWiki. All rights reserved.