org.xwiki.rendering.internal.parser.wikimodel.xhtml
Class XWikiReferenceTagHandler

java.lang.Object
  extended by org.wikimodel.wem.xhtml.handler.TagHandler
      extended by org.wikimodel.wem.xhtml.handler.ReferenceTagHandler
          extended by org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiReferenceTagHandler

public class XWikiReferenceTagHandler
extends org.wikimodel.wem.xhtml.handler.ReferenceTagHandler

Override the default WikiModel Reference handler to handle XWiki references since we store some information in comments. We also need to handle the span elements introduced by XWiki.

Since:
1.7M1
Version:
$Id$

Constructor Summary
XWikiReferenceTagHandler(WikiModelXHTMLParser parser, PrintRendererFactory xwikiSyntaxPrintRendererFactory)
           
 
Method Summary
protected  void begin(org.wikimodel.wem.xhtml.impl.XhtmlHandler.TagStack.TagContext context)
          
protected  void end(org.wikimodel.wem.xhtml.impl.XhtmlHandler.TagStack.TagContext context)
          
 void initialize(org.wikimodel.wem.xhtml.impl.XhtmlHandler.TagStack stack)
          
 
Methods inherited from class org.wikimodel.wem.xhtml.handler.ReferenceTagHandler
isFreeStandingReference, removeFreestanding, removeMeaningfulParameters
 
Methods inherited from class org.wikimodel.wem.xhtml.handler.TagHandler
beginDocument, beginDocument, beginElement, endDocument, endElement, isAccumulateContent, isBlockHandler, isContentContainer, isDocumentContainer, requiresDocument, sendEmptyLines, setAccumulateContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWikiReferenceTagHandler

public XWikiReferenceTagHandler(WikiModelXHTMLParser parser,
                                PrintRendererFactory xwikiSyntaxPrintRendererFactory)
Since:
2.2.5
Method Detail

initialize

public void initialize(org.wikimodel.wem.xhtml.impl.XhtmlHandler.TagStack stack)

Overrides:
initialize in class org.wikimodel.wem.xhtml.handler.TagHandler
See Also:
TagHandler.initialize(org.wikimodel.wem.xhtml.impl.XhtmlHandler.TagStack)

begin

protected void begin(org.wikimodel.wem.xhtml.impl.XhtmlHandler.TagStack.TagContext context)

Overrides:
begin in class org.wikimodel.wem.xhtml.handler.ReferenceTagHandler
See Also:
ReferenceTagHandler.begin(org.wikimodel.wem.xhtml.impl.XhtmlHandler.TagStack.TagContext)

end

protected void end(org.wikimodel.wem.xhtml.impl.XhtmlHandler.TagStack.TagContext context)

Overrides:
end in class org.wikimodel.wem.xhtml.handler.ReferenceTagHandler
See Also:
ReferenceTagHandler.end(org.wikimodel.wem.xhtml.impl.XhtmlHandler.TagStack.TagContext)


Copyright © 2004-2011 XWiki. All Rights Reserved.