com.atlassian.renderer.v2.components
Class AbstractRegexRendererComponent

java.lang.Object
  extended by com.atlassian.renderer.v2.components.AbstractRendererComponent
      extended by com.atlassian.renderer.v2.components.AbstractRegexRendererComponent
All Implemented Interfaces:
RendererComponent
Direct Known Subclasses:
BackslashEscapeRendererComponent, CamelCaseLinkRendererComponent, EmbeddedRendererComponent, EmoticonRendererComponent, ForceNewLineRendererComponent, HtmlEntityRendererComponent, TemplateParamRenderComponent, TokenRendererComponent, UrlRendererComponent

public abstract class AbstractRegexRendererComponent
extends AbstractRendererComponent


Constructor Summary
AbstractRegexRendererComponent()
           
 
Method Summary
abstract  void appendSubstitution(StringBuffer buffer, RenderContext context, Matcher matcher)
          Implement this method to perform your actual regex substitution.
protected  String regexRender(String wiki, RenderContext context, Pattern pattern)
           
abstract  String render(String wiki, RenderContext context)
          Render this piece of wiki text.
abstract  boolean shouldRender(RenderMode renderMode)
          Whether or not this render component is required given the current render mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRegexRendererComponent

public AbstractRegexRendererComponent()
Method Detail

shouldRender

public abstract boolean shouldRender(RenderMode renderMode)
Description copied from interface: RendererComponent
Whether or not this render component is required given the current render mode.


render

public abstract String render(String wiki,
                              RenderContext context)
Description copied from interface: RendererComponent
Render this piece of wiki text.


regexRender

protected String regexRender(String wiki,
                             RenderContext context,
                             Pattern pattern)

appendSubstitution

public abstract void appendSubstitution(StringBuffer buffer,
                                        RenderContext context,
                                        Matcher matcher)
Implement this method to perform your actual regex substitution.



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.