Module org.apache.wicket.extensions
Class LinkParser
java.lang.Object
org.apache.wicket.extensions.markup.html.basic.LinkParser
- All Implemented Interfaces:
ILinkParser
- Direct Known Subclasses:
DefaultLinkParser
This base implementation iterates over all provided
ILinkRenderStrategy
implementations and applies them to the input text.- Author:
- Gerolf Seitz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLinkRenderStrategy(String pattern, ILinkRenderStrategy renderStrategy) Adds a render strategy to the parser.Parses thetextand changes it according to the providedILinkRenderStrategyimplementations.
-
Constructor Details
-
LinkParser
public LinkParser()
-
-
Method Details
-
addLinkRenderStrategy
Adds a render strategy to the parser.- Parameters:
pattern- the pattern to which the providedrenderStrategyshould be applied.renderStrategy- theILinkRenderStrategywhich is applied to the text found by the providedpattern.- Returns:
- this
ILinkParser.
-
parse
Description copied from interface:ILinkParserParses thetextand changes it according to the providedILinkRenderStrategyimplementations.- Specified by:
parsein interfaceILinkParser- Parameters:
text- the input text which should be modified.- Returns:
- the modified input text.
- See Also:
-