org.wikimodel.wem.xml
Class WemSimpleBlockTagNotifier

java.lang.Object
  extended by org.wikimodel.wem.xml.AbstractTagNotifier
      extended by org.wikimodel.wem.xml.WemSimpleBlockTagNotifier
All Implemented Interfaces:
IWemListenerSimpleBlocks, ISaxConst

public class WemSimpleBlockTagNotifier
extends AbstractTagNotifier
implements IWemListenerSimpleBlocks

Author:
kotelnikov

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
WemSimpleBlockTagNotifier(ITagListener listener)
           
 
Method Summary
 void beginInfoBlock(java.lang.String infoType, WikiParameters params)
          This method is used to notify about the beginning of a "typed" paragraph.
 void beginParagraph(WikiParameters params)
          Begin of a simple paragraph.
 void endInfoBlock(java.lang.String infoType, WikiParameters params)
          This method is used to notify about the end of a "typed" paragraph.
 void endParagraph(WikiParameters params)
          End of a simple paragraph.
 void onEmptyLines(int count)
          This method is used to notify about a sequence of empty lines.
 void onHorizontalLine(WikiParameters params)
          This method notifies horizontal lines defined in the text.
 void onVerbatimBlock(java.lang.String str, WikiParameters params)
          This method notifies about a verbatim (pre-formatted) block defined in the text
 
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

WemSimpleBlockTagNotifier

public WemSimpleBlockTagNotifier(ITagListener listener)
Parameters:
listener -
Method Detail

beginInfoBlock

public void beginInfoBlock(java.lang.String infoType,
                           WikiParameters params)
Description copied from interface: IWemListenerSimpleBlocks
This method is used to notify about the beginning of a "typed" paragraph. Some wiki syntaxes have special markups to define simple block elements corresponding to "warnings", "info blocks" and so on. Blocks of this type can have formatted inline elements.

Specified by:
beginInfoBlock in interface IWemListenerSimpleBlocks
Parameters:
infoType - the "type" of the special block
params - parameters of this block
See Also:
IWemListenerSimpleBlocks.endInfoBlock(String, WikiParameters)

beginParagraph

public void beginParagraph(WikiParameters params)
Description copied from interface: IWemListenerSimpleBlocks
Begin of a simple paragraph. Paragraphs can contain only formatted inline elements.

Specified by:
beginParagraph in interface IWemListenerSimpleBlocks
Parameters:
params - paragraph parameters
See Also:
IWemListenerSimpleBlocks.endParagraph(WikiParameters)

endInfoBlock

public void endInfoBlock(java.lang.String infoType,
                         WikiParameters params)
Description copied from interface: IWemListenerSimpleBlocks
This method is used to notify about the end of a "typed" paragraph.

Specified by:
endInfoBlock in interface IWemListenerSimpleBlocks
Parameters:
infoType - the "type" of the special block
params - parameters of this block
See Also:
IWemListenerSimpleBlocks.beginInfoBlock(String, WikiParameters)

endParagraph

public void endParagraph(WikiParameters params)
Description copied from interface: IWemListenerSimpleBlocks
End of a simple paragraph.

Specified by:
endParagraph in interface IWemListenerSimpleBlocks
Parameters:
params - paragraph parameters
See Also:
IWemListenerSimpleBlocks.beginParagraph(WikiParameters)

onEmptyLines

public void onEmptyLines(int count)
Description copied from interface: IWemListenerSimpleBlocks
This method is used to notify about a sequence of empty lines. This event can be interpreted as an "empty paragraph".

Specified by:
onEmptyLines in interface IWemListenerSimpleBlocks
Parameters:
count - the number of empty lines found in the text

onHorizontalLine

public void onHorizontalLine(WikiParameters params)
Description copied from interface: IWemListenerSimpleBlocks
This method notifies horizontal lines defined in the text.

Specified by:
onHorizontalLine in interface IWemListenerSimpleBlocks
Parameters:
params - parameters of the horizontal line

onVerbatimBlock

public void onVerbatimBlock(java.lang.String str,
                            WikiParameters params)
Description copied from interface: IWemListenerSimpleBlocks
This method notifies about a verbatim (pre-formatted) block defined in the text

Specified by:
onVerbatimBlock in interface IWemListenerSimpleBlocks
Parameters:
str - the content of the verbatim (pre-formatted) block
params - parameters of the verbatim block


Copyright © 2005-2010. All Rights Reserved.