|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wikimodel.wem.xml.AbstractTagNotifier
org.wikimodel.wem.xml.WemInlineTagNotifier
public class WemInlineTagNotifier
| Field Summary |
|---|
| Fields inherited from class org.wikimodel.wem.xml.AbstractTagNotifier |
|---|
EMPTY_MAP, fListener |
| Fields inherited from interface org.wikimodel.wem.xml.ISaxConst |
|---|
DEFINITION_DESCRIPTION, DEFINITION_LIST, DEFINITION_TERM, DOCUMENT, EMPTY_LINES, EMPTY_LINES_SIZE, ESCAPE, EXTENSION_BLOCK, EXTENSION_INLINE, EXTENSION_NAME, FORMAT, HEADER, HEADER_LEVEL, HORIZONTAL_LINE, IMAGE, IMAGE_IMPLICIT, INFO_BLOCK, INFO_BLOCK_TYPE, LINE_BREAK, LIST_ITEM, LIST_ORDERED, LIST_UNORDERED, MACRO_BLOCK, MACRO_INLINE, MACRO_NAME, NEW_LINE, PARAGRAPH, PROPERTY_BLOCK, PROPERTY_DOC, PROPERTY_INLINE, PROPERTY_URL, QUOTATION, QUOTATION_LINE, REF_EXPLICIT, REF_IMPLICIT, SECTION, SECTION_CONTENT, SECTION_DOC_LEVEL, SECTION_HEADER_LEVEL, SECTION_LEVEL, STYLES, TABLE, TABLE_CAPTION, TABLE_CAPTION_PARAM, TABLE_CELL, TABLE_HEAD, TABLE_ROW, VERBATIM_BLOCK, VERBATIM_INLINE |
| Constructor Summary | |
|---|---|
WemInlineTagNotifier(ITagListener listener)
|
|
| Method Summary | |
|---|---|
void |
beginFormat(WikiFormat format)
This method is called at the beginning of a sequence of in-line elements having the specified formatting parameters. |
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 |
onEscape(String str)
Escaped symbols. |
void |
onImage(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 |
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 |
onReference(WikiReference ref)
This method is called to notify that a structured reference was found in the text |
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 |
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. |
| Methods inherited from class org.wikimodel.wem.xml.AbstractTagNotifier |
|---|
newParamMap, tagParams, tagParams, tagParams, tagParams, userParams, userParams, userParams |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WemInlineTagNotifier(ITagListener listener)
listener - | Method Detail |
|---|
public void beginFormat(WikiFormat format)
IWemListenerInline
beginFormat in interface IWemListenerInlineformat - the object defining formatting parameters of in-line
elements.public void endFormat(WikiFormat format)
IWemListenerInline
endFormat in interface IWemListenerInlineformat - the formatting object defining how contained in-line
elements should be formattedpublic void onEscape(String str)
IWemListenerInline
onEscape in interface IWemListenerInlinestr - the escaped sequence of characterspublic void onImage(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 onNewLine()
IWemListenerInlineIWemListenerInline.onLineBreak() event.
onNewLine in interface IWemListenerInlineIWemListenerInline.onSpace(String),
IWemListenerInline.onWord(String),
IWemListenerInline.onSpecialSymbol(String),
IWemListenerInline.onLineBreak()public void onReference(String ref)
IWemListenerInline
onReference in interface IWemListenerInlineref - the URIpublic void onReference(WikiReference ref)
IWemListenerInline
onReference in interface IWemListenerInlineref - the reference the referencepublic void onSpace(String str)
IWemListenerInline
onSpace in interface IWemListenerInlinestr - the sequence of space charactersIWemListenerInline.onWord(String),
IWemListenerInline.onSpecialSymbol(String),
IWemListenerInline.onNewLine()public void onSpecialSymbol(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 onVerbatimInline(String str,
WikiParameters params)
IWemListenerInline
onVerbatimInline in interface IWemListenerInlinestr - the sequence of non-interpreted charactersparams - TODOpublic void onWord(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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||