info.textgrid.utils.linkrewriter
Class ConfigurableXMLRewriter.Replacer

java.lang.Object
  extended by info.textgrid.utils.linkrewriter.ConfigurableXMLRewriter.Replacer
Enclosing class:
ConfigurableXMLRewriter

protected abstract class ConfigurableXMLRewriter.Replacer
extends Object

implementers must implement apply(String) and can use the other methods


Constructor Summary
Modifier Constructor and Description
protected ConfigurableXMLRewriter.Replacer()
           
 
Method Summary
Modifier and Type Method and Description
abstract  String apply(String to)
           
protected  String rewriteSingleLink(String link)
          Rewrites a single possible link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableXMLRewriter.Replacer

protected ConfigurableXMLRewriter.Replacer()
Method Detail

apply

public abstract String apply(String to)

rewriteSingleLink

protected String rewriteSingleLink(String link)
Rewrites a single possible link.

Parameters:
link - the URI contained, optionally whitespace-padded (whitespace will be stripped). If the link is found in the mapping, its replacement is applied (fragment-preserving).
Returns:
rewritten version of link or null if link isn't known.


Copyright © 2012 TextGrid. All Rights Reserved.