org.apache.wicket.extensions.markup.html.basic
Class LinkParser
java.lang.Object
org.apache.wicket.extensions.markup.html.basic.LinkParser
- All Implemented Interfaces:
- ILinkParser
- Direct Known Subclasses:
- DefaultLinkParser
public class LinkParser
- extends Object
- implements ILinkParser
This base implementation iterates over all provided ILinkRenderStrategy
implementations and applies them to the input text.
- Author:
- Gerolf Seitz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkParser
public LinkParser()
addLinkRenderStrategy
public ILinkParser addLinkRenderStrategy(String pattern,
ILinkRenderStrategy renderStrategy)
- Adds a render strategy to the parser.
- Parameters:
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
.
- Returns:
- this
ILinkParser
.
parse
public String parse(String text)
- Description copied from interface:
ILinkParser
- Parses the
text
and changes it according to the provided
ILinkRenderStrategy
implementations.
- Specified by:
parse
in interface ILinkParser
- Parameters:
text
- the input text which should be modified.
- Returns:
- the modified input text.
- See Also:
ILinkParser.parse(String)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.