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
-
Method Summary
Modifier and TypeMethodDescriptionaddLinkRenderStrategy
(String pattern, ILinkRenderStrategy renderStrategy) Adds a render strategy to the parser.Parses thetext
and changes it according to the providedILinkRenderStrategy
implementations.
-
Constructor Details
-
LinkParser
public LinkParser()
-
-
Method Details
-
addLinkRenderStrategy
Adds a render strategy to the parser.- Parameters:
pattern
- the pattern to which the providedrenderStrategy
should be applied.renderStrategy
- theILinkRenderStrategy
which is applied to the text found by the providedpattern
.- Returns:
- this
ILinkParser
.
-
parse
Description copied from interface:ILinkParser
Parses thetext
and changes it according to the providedILinkRenderStrategy
implementations.- Specified by:
parse
in interfaceILinkParser
- Parameters:
text
- the input text which should be modified.- Returns:
- the modified input text.
- See Also:
-