|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wikimodel.wem.jspwiki.JspWikiSerializer
public class JspWikiSerializer
Not ready yet
| Constructor Summary | |
|---|---|
JspWikiSerializer()
|
|
JspWikiSerializer(java.lang.StringBuffer buf)
|
|
| Method Summary | |
|---|---|
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()
|
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(java.lang.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(java.lang.String propertyUri,
boolean doc)
This method is called to notify about the beginning of a new property found in the parsed document. |
void |
beginPropertyInline(java.lang.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. |
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()
|
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(java.lang.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(java.lang.String propertyUri,
boolean doc)
This method is called to notify about the end of a block property found in the parsed document. |
void |
endPropertyInline(java.lang.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. |
protected java.lang.String |
getEol()
|
void |
onEmptyLines(int count)
This method is used to notify about a sequence of empty lines. |
void |
onEscape(java.lang.String str)
Escaped symbols. |
void |
onExtensionBlock(java.lang.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(java.lang.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 |
onImage(java.lang.String ref)
This method is called to notify that an free standing image was found in the parsed wiki document. |
void |
onImage(WikiReference ref)
This method is called to notify that a structured reference was found in the text |
void |
onLineBreak()
This method is called to notify about a forced line break found in the text. |
void |
onMacro(java.lang.String macroName,
WikiParameters params,
java.lang.String content)
|
void |
onMacroBlock(java.lang.String macroName,
WikiParameters params,
java.lang.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(java.lang.String macroName,
WikiParameters params,
java.lang.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(java.lang.String ref)
This method is called to notify that an URI (an implicit reference) was found in the parsed wiki document. |
void |
onReference(WikiReference ref)
This method is called to notify that a structured reference was found in the text |
void |
onSpace(java.lang.String str)
This method is called to notify about a sequence of space symbols (like " " or "\t" symbols). |
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 |
onVerbatimBlock(java.lang.String str,
WikiParameters params)
This method notifies about a verbatim (pre-formatted) block defined in the text |
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". |
void |
onWord(java.lang.String str)
This method is called to notify about a "word" found in the document. |
protected void |
print(java.lang.String str)
|
protected void |
println(java.lang.String str)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JspWikiSerializer()
public JspWikiSerializer(java.lang.StringBuffer buf)
| Method Detail |
|---|
public void beginDefinitionDescription()
IWemListenerList
beginDefinitionDescription in interface IWemListenerListIWemListenerList.endDefinitionDescription()public void beginDefinitionList(WikiParameters params)
IWemListenerList
beginDefinitionList in interface IWemListenerListparams - list of parameters for the listIWemListenerList.endDefinitionList(WikiParameters)public void beginDefinitionTerm()
IWemListenerList
beginDefinitionTerm in interface IWemListenerListIWemListenerList.endDefinitionTerm()public void beginDocument()
public void beginDocument(WikiParameters params)
IWemListenerDocument
beginDocument in interface IWemListenerDocumentpublic void beginFormat(WikiFormat format)
IWemListenerInline
beginFormat in interface IWemListenerInlineformat - the object defining formatting parameters of in-line
elements.
public void beginHeader(int headerLevel,
WikiParameters params)
IWemListenerDocument
beginHeader in interface IWemListenerDocumentheaderLevel - the level of the found header; valid values: 1-6params - wiki parameters associated with the
public void beginInfoBlock(java.lang.String infoType,
WikiParameters params)
IWemListenerSimpleBlocks
beginInfoBlock in interface IWemListenerSimpleBlocksinfoType - the "type" of the special blockparams - parameters of this blockIWemListenerSimpleBlocks.endInfoBlock(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 IWemListenerListparams - 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 beginListItem()
IWemListenerListIWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods).
beginListItem in interface IWemListenerListIWemListenerList.endListItem()public void beginParagraph(WikiParameters params)
IWemListenerSimpleBlocks
beginParagraph in interface IWemListenerSimpleBlocksparams - paragraph parametersIWemListenerSimpleBlocks.endParagraph(WikiParameters)
public void beginPropertyBlock(java.lang.String propertyUri,
boolean doc)
IWemListenerSemantic
beginPropertyBlock in interface IWemListenerSemanticpropertyUri - 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 paragraphpublic void beginPropertyInline(java.lang.String str)
IWemListenerSemantic
beginPropertyInline in interface IWemListenerSemanticstr - the URI of the semantic inline property found in the
documentpublic void beginQuotation(WikiParameters params)
IWemListenerList
beginQuotation in interface IWemListenerListparams - parameters of the listIWemListenerList.endQuotation(WikiParameters)public void beginQuotationLine()
IWemListenerList
beginQuotationLine in interface IWemListenerListIWemListenerList.endQuotationLine()
public void beginSection(int docLevel,
int headerLevel,
WikiParameters params)
IWemListenerDocument
beginSection in interface IWemListenerDocumentdocLevel - the level (depth) of the document containing this sectionheaderLevel - the level of the header defining this sectionparams - parameters parameters of the document or the header
public void beginSectionContent(int docLevel,
int headerLevel,
WikiParameters params)
IWemListenerDocument
beginSectionContent in interface IWemListenerDocumentdocLevel - the level (depth) of the document containing this sectionheaderLevel - the level of the header defining this sectionparams - parameters parameters of the document or the headerpublic void beginTable(WikiParameters params)
IWemListenerTable
beginTable in interface IWemListenerTableparams - table parametersIWemListenerTable.endTable(WikiParameters)
public void beginTableCell(boolean tableHead,
WikiParameters params)
IWemListenerTable
beginTableCell in interface IWemListenerTabletableHead - 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 beginTableRow(WikiParameters params)
IWemListenerTable
beginTableRow in interface IWemListenerTableparams - parameters of the row.IWemListenerTable.endTableRow(WikiParameters)public void endDefinitionDescription()
IWemListenerList
endDefinitionDescription in interface IWemListenerListIWemListenerList.beginDefinitionDescription()public void endDefinitionList(WikiParameters params)
IWemListenerList
endDefinitionList in interface IWemListenerListparams - list of parameters for the listIWemListenerList.beginDefinitionList(WikiParameters)public void endDefinitionTerm()
IWemListenerList
endDefinitionTerm in interface IWemListenerListIWemListenerList.beginDefinitionTerm()public void endDocument()
public void endDocument(WikiParameters params)
IWemListenerDocument
endDocument in interface IWemListenerDocumentpublic void endFormat(WikiFormat format)
IWemListenerInline
endFormat in interface IWemListenerInlineformat - the formatting object defining how contained in-line
elements should be formatted
public void endHeader(int headerLevel,
WikiParameters params)
IWemListenerDocument
endHeader in interface IWemListenerDocumentheaderLevel - the level of the headerparams - wiki parameters of the header
public void endInfoBlock(java.lang.String infoType,
WikiParameters params)
IWemListenerSimpleBlocks
endInfoBlock in interface IWemListenerSimpleBlocksinfoType - the "type" of the special blockparams - parameters of this blockIWemListenerSimpleBlocks.beginInfoBlock(String, WikiParameters)
public void endList(WikiParameters params,
boolean ordered)
IWemListenerList
endList in interface IWemListenerListparams - 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 endListItem()
IWemListenerListIWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods).
endListItem in interface IWemListenerListIWemListenerList.beginListItem()public void endParagraph(WikiParameters params)
IWemListenerSimpleBlocks
endParagraph in interface IWemListenerSimpleBlocksparams - paragraph parametersIWemListenerSimpleBlocks.beginParagraph(WikiParameters)
public void endPropertyBlock(java.lang.String propertyUri,
boolean doc)
IWemListenerSemantic
endPropertyBlock in interface IWemListenerSemanticpropertyUri - 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 paragraphpublic void endPropertyInline(java.lang.String inlineProperty)
IWemListenerSemantic
endPropertyInline in interface IWemListenerSemanticinlineProperty - the URI of the semantic inline property found in the
documentpublic void endQuotation(WikiParameters params)
IWemListenerList
endQuotation in interface IWemListenerListparams - parameters of the listIWemListenerList.endQuotation(WikiParameters)public void endQuotationLine()
IWemListenerList
endQuotationLine in interface IWemListenerListIWemListenerList.endQuotationLine()
public void endSection(int docLevel,
int headerLevel,
WikiParameters params)
IWemListenerDocument
endSection in interface IWemListenerDocumentdocLevel - the level (depth) of the document containing this sectionheaderLevel - the level of the header defining this sectionparams - parameters parameters of the document or the header
public void endSectionContent(int docLevel,
int headerLevel,
WikiParameters params)
IWemListenerDocument
endSectionContent in interface IWemListenerDocumentdocLevel - the level (depth) of the document containing this sectionheaderLevel - the level of the header defining this sectionparams - parameters parameters of the document or the headerpublic void endTable(WikiParameters params)
IWemListenerTable
endTable in interface IWemListenerTableparams - table parametersIWemListenerTable.beginTable(WikiParameters)
public void endTableCell(boolean tableHead,
WikiParameters params)
IWemListenerTable
endTableCell in interface IWemListenerTabletableHead - 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 endTableRow(WikiParameters params)
IWemListenerTable
endTableRow in interface IWemListenerTableparams - parameters of the row.IWemListenerTable.beginTableRow(WikiParameters)protected java.lang.String getEol()
public void onEmptyLines(int count)
IWemListenerSimpleBlocks
onEmptyLines in interface IWemListenerSimpleBlockscount - the number of empty lines found in the textpublic void onEscape(java.lang.String str)
IWemListenerInline
onEscape in interface IWemListenerInlinestr - the escaped sequence of characters
public void onExtensionBlock(java.lang.String extensionName,
WikiParameters params)
IWemListenerProgramming
onExtensionBlock in interface IWemListenerProgrammingextensionName - the name of the extensionparams - parameters for the extension
public void onExtensionInline(java.lang.String extensionName,
WikiParameters params)
IWemListenerProgramming
onExtensionInline in interface IWemListenerProgrammingextensionName - the name of the extensionparams - parameters for the extensionpublic void onHorizontalLine(WikiParameters params)
IWemListenerSimpleBlocks
onHorizontalLine in interface IWemListenerSimpleBlocksparams - parameters of the horizontal linepublic void onImage(java.lang.String ref)
IWemListenerInline
onImage in interface IWemListenerInlineref - the reference the referencepublic void onImage(WikiReference ref)
IWemListenerInline
onImage in interface IWemListenerInlineref - the reference the referencepublic void onLineBreak()
IWemListenerInlineIWemListenerInline.onNewLine()
notification.
onLineBreak in interface IWemListenerInlineIWemListenerInline.onNewLine()
public void onMacro(java.lang.String macroName,
WikiParameters params,
java.lang.String content)
public void onMacroBlock(java.lang.String macroName,
WikiParameters params,
java.lang.String content)
IWemListenerProgramming
onMacroBlock in interface IWemListenerProgrammingmacroName - the name of the macroparams - parameters of the macrocontent - the content of the macro
public void onMacroInline(java.lang.String macroName,
WikiParameters params,
java.lang.String content)
IWemListenerProgramming
onMacroInline in interface IWemListenerProgrammingmacroName - the name of the macroparams - parameters of the macrocontent - the content of the macropublic void onNewLine()
IWemListenerInlineIWemListenerInline.onLineBreak() event.
onNewLine in interface IWemListenerInlineIWemListenerInline.onSpace(String),
IWemListenerInline.onWord(String),
IWemListenerInline.onSpecialSymbol(String),
IWemListenerInline.onLineBreak()public void onReference(java.lang.String ref)
IWemListenerInline
onReference in interface IWemListenerInlineref - the URIpublic void onReference(WikiReference ref)
IWemListenerInline
onReference in interface IWemListenerInlineref - the reference the referencepublic void onSpace(java.lang.String str)
IWemListenerInline
onSpace in interface IWemListenerInlinestr - the sequence of space charactersIWemListenerInline.onWord(String),
IWemListenerInline.onSpecialSymbol(String),
IWemListenerInline.onNewLine()public void onSpecialSymbol(java.lang.String str)
IWemListenerInline
The full list of possible special symbols:
"!", "\"", "#", "$", "%", "&", "'", "(",
")", "*", "+", ",", "-", ".", "/", ":",
";", "<", "=", ">", "?", "@", "[", "\\",
"]", "^", "_", "`", "{", "|", "}", "~"
onSpecialSymbol in interface IWemListenerInlinestr - the sequence of special symbolsIWemListenerInline.onSpace(String),
IWemListenerInline.onWord(String),
IWemListenerInline.onNewLine()public void onTableCaption(java.lang.String str)
IWemListenerTable
onTableCaption in interface IWemListenerTablestr - the content of the table caption
public void onVerbatimBlock(java.lang.String str,
WikiParameters params)
IWemListenerSimpleBlocks
onVerbatimBlock in interface IWemListenerSimpleBlocksstr - the content of the verbatim (pre-formatted) blockparams - parameters of the verbatim block
public void onVerbatimInline(java.lang.String str,
WikiParameters params)
IWemListenerInline
onVerbatimInline in interface IWemListenerInlinestr - the sequence of non-interpreted charactersparams - TODOpublic void onWord(java.lang.String str)
IWemListenerInline
Words are formed by the all characters excluding the following ones:
"\t", "\n", "\r", " ",
"!", "\"", "#", "$", "%", "&", "'", "(",
")", "*", "+", ",", "-", ".", "/", ":",
";", "<", "=", ">", "?", "@", "[", "\\",
"]", "^", "_", "`", "{", "|", "}", "~"
onWord in interface IWemListenerInlinestr - the sequence of characters forming a wordIWemListenerInline.onSpace(String),
IWemListenerInline.onSpecialSymbol(String),
IWemListenerInline.onNewLine()protected void print(java.lang.String str)
protected void println(java.lang.String str)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||