org.apache.wiki
Class LinkCollector

java.lang.Object
  extended by org.apache.wiki.LinkCollector
All Implemented Interfaces:
StringTransmutator

public class LinkCollector
extends Object
implements StringTransmutator

Just a simple class collecting all of the links that come in.


Constructor Summary
LinkCollector()
           
 
Method Summary
 Collection<String> getLinks()
          Returns a List of Strings representing links.
 String mutate(WikiContext context, String in)
          Returns a changed String, suitable for Wiki context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkCollector

public LinkCollector()
Method Detail

getLinks

public Collection<String> getLinks()
Returns a List of Strings representing links.

Returns:
the link collection

mutate

public String mutate(WikiContext context,
                     String in)
Returns a changed String, suitable for Wiki context.

Specified by:
mutate in interface StringTransmutator
Parameters:
context - WikiContext in which mutation is to be done
in - The source string.
Returns:
The mutated string.


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.