org.xwiki.rendering.wikimodel.confluence
Class ConfluenceExtendedWikiParser.EnhancedListener

java.lang.Object
  extended by org.xwiki.rendering.wikimodel.CompositeListener
      extended by org.xwiki.rendering.wikimodel.confluence.ConfluenceExtendedWikiParser.EnhancedListener
All Implemented Interfaces:
IWemListener, IWemListenerDocument, IWemListenerInline, IWemListenerList, IWemListenerProgramming, IWemListenerSemantic, IWemListenerSimpleBlocks, IWemListenerTable
Enclosing class:
ConfluenceExtendedWikiParser

public static class ConfluenceExtendedWikiParser.EnhancedListener
extends CompositeListener


Constructor Summary
ConfluenceExtendedWikiParser.EnhancedListener(IWemListener... listeners)
           
 
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 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 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 onMacroBlock(String macroName, WikiParameters params, 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.
 
Methods inherited from class org.xwiki.rendering.wikimodel.CompositeListener
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginFormat, beginHeader, beginInfoBlock, beginList, beginListItem, beginParagraph, beginPropertyBlock, beginPropertyInline, beginQuotation, beginQuotationLine, beginTable, beginTableCell, beginTableRow, endDefinitionDescription, endDefinitionList, endDefinitionTerm, endFormat, endHeader, endInfoBlock, endList, endListItem, endParagraph, endPropertyBlock, endPropertyInline, endQuotation, endQuotationLine, endTable, endTableCell, endTableRow, onEmptyLines, onEscape, onExtensionBlock, onExtensionInline, onHorizontalLine, onImage, onImage, onLineBreak, onMacroInline, onNewLine, onReference, onReference, onSpace, onSpecialSymbol, onTableCaption, onVerbatimBlock, onVerbatimInline, onWord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceExtendedWikiParser.EnhancedListener

public ConfluenceExtendedWikiParser.EnhancedListener(IWemListener... listeners)
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
Overrides:
beginDocument in class CompositeListener
See Also:
IWemListenerDocument.beginDocument(WikiParameters)

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
Overrides:
beginSection in class CompositeListener
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
See Also:
IWemListenerDocument.beginSection(int, int, WikiParameters)

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
Overrides:
beginSectionContent in class CompositeListener
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
See Also:
IWemListenerDocument.beginSectionContent(int, int, WikiParameters)

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
Overrides:
endDocument in class CompositeListener
See Also:
IWemListenerDocument.endDocument(WikiParameters)

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
Overrides:
endSection in class CompositeListener
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
See Also:
IWemListenerDocument.endSection(int, int, WikiParameters)

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
Overrides:
endSectionContent in class CompositeListener
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
See Also:
IWemListenerDocument.endSectionContent(int, int, WikiParameters)

onMacroBlock

public void onMacroBlock(String macroName,
                         WikiParameters params,
                         String content)
Description copied from interface: IWemListenerProgramming
This method is used to notify about a new in-line macro which CAN generate block elements as a result of its interpretation.

Specified by:
onMacroBlock in interface IWemListenerProgramming
Overrides:
onMacroBlock in class CompositeListener
Parameters:
macroName - the name of the macro
params - parameters of the macro
content - the content of the macro


Copyright © 2004-2012 XWiki. All Rights Reserved.