public class LinkParser extends Object implements ILinkParser
ILinkRenderStrategy
implementations and applies them to the input text.| Constructor and Description |
|---|
LinkParser() |
| Modifier and Type | Method and Description |
|---|---|
ILinkParser |
addLinkRenderStrategy(String pattern,
ILinkRenderStrategy renderStrategy)
Adds a render strategy to the parser.
|
String |
parse(String text)
Parses the
text and changes it according to the provided
ILinkRenderStrategy implementations. |
public ILinkParser addLinkRenderStrategy(String pattern, ILinkRenderStrategy renderStrategy)
pattern - the pattern to which the provided renderStrategy should be applied.renderStrategy - the ILinkRenderStrategy which is applied to the text found by the
provided pattern.ILinkParser.public String parse(String text)
ILinkParsertext and changes it according to the provided
ILinkRenderStrategy implementations.parse in interface ILinkParsertext - the input text which should be modified.ILinkParser.parse(String)Copyright © 2006–2015 Apache Software Foundation. All rights reserved.