public class WemInlineTagNotifier extends AbstractTagNotifier implements IWemListenerInline
EMPTY_MAP, fListenerDEFINITION_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 and Description |
|---|
WemInlineTagNotifier(ITagListener listener) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
newParamMap, tagParams, tagParams, tagParams, tagParams, userParams, userParams, userParamspublic WemInlineTagNotifier(ITagListener listener)
listener - public void beginFormat(WikiFormat format)
IWemListenerInlinebeginFormat in interface IWemListenerInlineformat - the object defining formatting parameters of in-line elements.public void endFormat(WikiFormat format)
IWemListenerInlineendFormat in interface IWemListenerInlineformat - the formatting object defining how contained in-line elements should be formattedpublic void onEscape(String str)
IWemListenerInlineonEscape in interface IWemListenerInlinestr - the escaped sequence of characterspublic void onImage(String ref)
IWemListenerInlineonImage in interface IWemListenerInlineref - the reference the referencepublic void onImage(WikiReference ref)
IWemListenerInlineonImage in interface IWemListenerInlineref - the reference the referencepublic void onLineBreak()
IWemListenerInlineIWemListenerInline.onNewLine()
notification.onLineBreak in interface IWemListenerInlineIWemListenerInline.onNewLine()public void onNewLine()
IWemListenerInline"\r\n" or "\r" or "\n" character sequence). Note that the new line symbols are not the same as a forced line break
sequence notified by the IWemListenerInline.onLineBreak() event.onNewLine in interface IWemListenerInlineIWemListenerInline.onSpace(String),
IWemListenerInline.onWord(String),
IWemListenerInline.onSpecialSymbol(String),
IWemListenerInline.onLineBreak()public void onReference(String ref)
IWemListenerInlineonReference in interface IWemListenerInlineref - the URIpublic void onReference(WikiReference ref)
IWemListenerInlineonReference in interface IWemListenerInlineref - the reference the referencepublic void onSpace(String str)
IWemListenerInline" " or "\t" symbols).onSpace in interface IWemListenerInlinestr - the sequence of space charactersIWemListenerInline.onWord(String),
IWemListenerInline.onSpecialSymbol(String),
IWemListenerInline.onNewLine()public void onSpecialSymbol(String str)
IWemListenerInlineThe 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)
IWemListenerInlineonVerbatimInline in interface IWemListenerInlinestr - the sequence of non-interpreted charactersparams - the list of parameters for this eventpublic void onWord(String str)
IWemListenerInlineWords 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()Copyright © 2004–2016 XWiki. All rights reserved.