Package org.apache.wiki
Class LinkCollector
- java.lang.Object
-
- org.apache.wiki.LinkCollector
-
- All Implemented Interfaces:
StringTransmutator
public class LinkCollector extends java.lang.Object implements StringTransmutator
Just a simple class collecting all the links that come in.
-
-
Constructor Summary
Constructors Constructor Description LinkCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getLinks()
Returns a List of Strings representing links.java.lang.String
mutate(Context context, java.lang.String in)
Returns a changed String, suitable for Wiki context.
-
-
-
Constructor Detail
-
LinkCollector
public LinkCollector()
-
-
Method Detail
-
getLinks
public java.util.List<java.lang.String> getLinks()
Returns a List of Strings representing links.- Returns:
- the link collection
-
mutate
public java.lang.String mutate(Context context, java.lang.String in)
Returns a changed String, suitable for Wiki context.- Specified by:
mutate
in interfaceStringTransmutator
- Parameters:
context
- WikiContext in which mutation is to be donein
- The source string.- Returns:
- The mutated string.
-
-