com.atlassian.renderer.v2.components
Class AbstractRegexRendererComponent
java.lang.Object
com.atlassian.renderer.v2.components.AbstractRendererComponent
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRegexRendererComponent
public AbstractRegexRendererComponent()
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.