org.xwiki.rendering.wikimodel.xml
Class WemDocumentTagNotifier

java.lang.Object
  extended by org.xwiki.rendering.wikimodel.xml.AbstractTagNotifier
      extended by org.xwiki.rendering.wikimodel.xml.WemDocumentTagNotifier
All Implemented Interfaces:
IWemListenerDocument, ISaxConst

public class WemDocumentTagNotifier
extends AbstractTagNotifier
implements IWemListenerDocument

Since:
4.0M1
Version:
$Id: c614de7c86b202c814db4d0528d7571a3883fb7c $

Field Summary
 
Fields inherited from class org.xwiki.rendering.wikimodel.xml.AbstractTagNotifier
EMPTY_MAP, fListener
 
Fields inherited from interface org.xwiki.rendering.wikimodel.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
WemDocumentTagNotifier(ITagListener listener)
           
 
Method Summary
 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 beginHeader(int headerLevel, WikiParameters params)
          This method is called to notify about a new section header found in the document.
 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 endDocument(WikiParameters params)
          This method is used to notify about the end of a top-level or an internal document.
 void endHeader(int headerLevel, WikiParameters params)
          This method is called to notify about the end of a section-level header.
 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.
 
Methods inherited from class org.xwiki.rendering.wikimodel.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

WemDocumentTagNotifier

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

beginDocument

public void beginDocument(WikiParameters params)
Description copied from interface: IWemListenerDocument
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).

Specified by:
beginDocument in interface IWemListenerDocument

beginHeader

public void beginHeader(int headerLevel,
                        WikiParameters params)
Description copied from interface: IWemListenerDocument
This method is called to notify about a new section header found in the document.

Specified by:
beginHeader in interface IWemListenerDocument
Parameters:
headerLevel - the level of the found header; valid values: 1-6
params - wiki parameters associated with the

beginSection

public void beginSection(int docLevel,
                         int headerLevel,
                         WikiParameters params)
Description copied from interface: IWemListenerDocument
This method is used to notify about the beginning of a section. Document sections delimits a set of structural elements at the same "level". A new level starts with a new document or a new header.

Specified by:
beginSection in interface IWemListenerDocument
Parameters:
docLevel - the level (depth) of the document containing this section
headerLevel - the level of the header defining this section
params - parameters parameters of the document or the header

beginSectionContent

public void beginSectionContent(int docLevel,
                                int headerLevel,
                                WikiParameters params)
Description copied from interface: IWemListenerDocument
This method is used to notify about the beginning of a section. Document sections delimits a set of structural elements at the same "level". A new level starts with a new document or a new header.

Specified by:
beginSectionContent in interface IWemListenerDocument
Parameters:
docLevel - the level (depth) of the document containing this section
headerLevel - the level of the header defining this section
params - parameters parameters of the document or the header

endDocument

public void endDocument(WikiParameters params)
Description copied from interface: IWemListenerDocument
This method is used to notify about the end of a top-level or an internal document.

Specified by:
endDocument in interface IWemListenerDocument

endHeader

public void endHeader(int headerLevel,
                      WikiParameters params)
Description copied from interface: IWemListenerDocument
This method is called to notify about the end of a section-level header.

Specified by:
endHeader in interface IWemListenerDocument
Parameters:
headerLevel - the level of the header
params - wiki parameters of the header

endSection

public void endSection(int docLevel,
                       int headerLevel,
                       WikiParameters params)
Description copied from interface: IWemListenerDocument
This method is used to notify about the end of a document section.

Specified by:
endSection in interface IWemListenerDocument
Parameters:
docLevel - the level (depth) of the document containing this section
headerLevel - the level of the header defining this section
params - parameters parameters of the document or the header

endSectionContent

public void endSectionContent(int docLevel,
                              int headerLevel,
                              WikiParameters params)
Description copied from interface: IWemListenerDocument
This method is used to notify about the end of a document section.

Specified by:
endSectionContent in interface IWemListenerDocument
Parameters:
docLevel - the level (depth) of the document containing this section
headerLevel - the level of the header defining this section
params - parameters parameters of the document or the header


Copyright © 2004–2013 XWiki. All rights reserved.