|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wikimodel.wem.PrintTextListener
org.wikimodel.wem.xwiki.XWikiSerializer
public class XWikiSerializer
| Field Summary |
|---|
| Fields inherited from class org.wikimodel.wem.PrintTextListener |
|---|
fRefHandler |
| Constructor Summary | |
|---|---|
XWikiSerializer(IWikiPrinter printer)
|
|
| Method Summary | |
|---|---|
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 java.lang.String |
getEol()
|
void |
onHorizontalLine()
|
void |
onLineBreak()
This method is called to notify about a forced line break found in the text. |
void |
onReference(java.lang.String ref)
This method is called to notify that an URI (an implicit reference) was found in the parsed wiki document. |
void |
onSpecialSymbol(java.lang.String str)
This method is called to notify about a sequence of special characters. |
void |
onTableCaption(java.lang.String str)
Notifies the table caption. |
void |
onVerbatimInline(java.lang.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". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XWikiSerializer(IWikiPrinter printer)
| Method Detail |
|---|
public void beginHeader(int headerLevel,
WikiParameters params)
IWemListenerDocument
beginHeader 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)
IWemListenerTable
beginTable in interface IWemListenerTablebeginTable in class PrintTextListenerparams - table parametersIWemListenerTable.beginTable(org.wikimodel.wem.WikiParameters)
public void beginTableCell(boolean tableHead,
WikiParameters params)
IWemListenerTable
beginTableCell 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)
IWemListenerTable
beginTableRow in interface IWemListenerTablebeginTableRow in class PrintTextListenerparams - parameters of the row.IWemListenerTable.beginTableRow(org.wikimodel.wem.WikiParameters)
public void endHeader(int headerLevel,
WikiParameters params)
IWemListenerDocument
endHeader 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)
IWemListenerList
endList 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(org.wikimodel.wem.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)
IWemListenerSimpleBlocks
endParagraph in interface IWemListenerSimpleBlocksendParagraph in class PrintTextListenerparams - paragraph parametersIWemListenerSimpleBlocks.endParagraph(org.wikimodel.wem.WikiParameters)public void endTable(WikiParameters params)
IWemListenerTable
endTable in interface IWemListenerTableendTable in class PrintTextListenerparams - table parametersIWemListenerTable.endTable(org.wikimodel.wem.WikiParameters)public void endTableRow(WikiParameters params)
IWemListenerTable
endTableRow in interface IWemListenerTableendTableRow in class PrintTextListenerparams - parameters of the row.IWemListenerTable.endTableRow(org.wikimodel.wem.WikiParameters)protected java.lang.String getEol()
public void onHorizontalLine()
public void onLineBreak()
IWemListenerInlineIWemListenerInline.onNewLine()
notification.
onLineBreak in interface IWemListenerInlineonLineBreak in class PrintTextListenerIWemListenerInline.onLineBreak()public void onReference(java.lang.String ref)
IWemListenerInline
onReference in interface IWemListenerInlineonReference in class PrintTextListenerref - the URIIWemListenerInline.onReference(java.lang.String)public void onSpecialSymbol(java.lang.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(java.lang.String str)
IWemListenerTable
onTableCaption in interface IWemListenerTableonTableCaption in class PrintTextListenerstr - the content of the table captionIWemListenerTable.onTableCaption(java.lang.String)
public void onVerbatimInline(java.lang.String str,
WikiParameters params)
IWemListenerInline
onVerbatimInline in interface IWemListenerInlineonVerbatimInline in class PrintTextListenerstr - the sequence of non-interpreted charactersparams - TODOIWemListenerInline.onVerbatimInline(java.lang.String,
WikiParameters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||