info.textgrid.utils.linkrewriter
Class ConfigurableXMLRewriter.Replacer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurableXMLRewriter.Replacer
protected ConfigurableXMLRewriter.Replacer()
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.