org.xwiki.rendering.wikimodel
Interface IWemListener

All Superinterfaces:
IWemListenerDocument, IWemListenerInline, IWemListenerList, IWemListenerProgramming, IWemListenerSemantic, IWemListenerSimpleBlocks, IWemListenerTable
All Known Implementing Classes:
AgregatingWemListener, CompositeListener, ConfluenceExtendedWikiParser.EnhancedListener, EmptyWemListener, EventDumpListener, JspWikiSerializer, PrintInlineListener, PrintListener, PrintTextListener, TexSerializer, WemTagNotifier, XWikiSerializer, XWikiSerializer2

public interface IWemListener
extends IWemListenerDocument, IWemListenerSimpleBlocks, IWemListenerInline, IWemListenerTable, IWemListenerList, IWemListenerSemantic, IWemListenerProgramming

This interface is a marker for classes implementing all WEM listeners. In the future it should be removed and replaced by an Object Adapter providing individual listeners. Such a provider should be used something like that:

 IWemListenerProvider provider = new MyWemListenerProvider();
 provider.registerListener(
      IWemListenerDocument.class,
      new MyDocumentListener());
 ...
 IWemListenerDocument docListener =
      provider.getListener(IWemListenerProvider.class);
 if (docListener != null) {
      docListener.beginDocument();
 }
 
Adapter-based approach is much more flexible and it can be used to transparently extend parsers to handle new types of structural elements.

Since:
4.0M1
Version:
$Id: 4fcb749f9f2785181f43b85e89b69803ea536b86 $

Method Summary
 
Methods inherited from interface org.xwiki.rendering.wikimodel.IWemListenerDocument
beginDocument, beginHeader, beginSection, beginSectionContent, endDocument, endHeader, endSection, endSectionContent
 
Methods inherited from interface org.xwiki.rendering.wikimodel.IWemListenerSimpleBlocks
beginInfoBlock, beginParagraph, endInfoBlock, endParagraph, onEmptyLines, onHorizontalLine, onVerbatimBlock
 
Methods inherited from interface org.xwiki.rendering.wikimodel.IWemListenerInline
beginFormat, endFormat, onEscape, onImage, onImage, onLineBreak, onNewLine, onReference, onReference, onSpace, onSpecialSymbol, onVerbatimInline, onWord
 
Methods inherited from interface org.xwiki.rendering.wikimodel.IWemListenerTable
beginTable, beginTableCell, beginTableRow, endTable, endTableCell, endTableRow, onTableCaption
 
Methods inherited from interface org.xwiki.rendering.wikimodel.IWemListenerList
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginList, beginListItem, beginQuotation, beginQuotationLine, endDefinitionDescription, endDefinitionList, endDefinitionTerm, endList, endListItem, endQuotation, endQuotationLine
 
Methods inherited from interface org.xwiki.rendering.wikimodel.IWemListenerSemantic
beginPropertyBlock, beginPropertyInline, endPropertyBlock, endPropertyInline
 
Methods inherited from interface org.xwiki.rendering.wikimodel.IWemListenerProgramming
onExtensionBlock, onExtensionInline, onMacroBlock, onMacroInline
 



Copyright © 2004–2015 XWiki. All rights reserved.