net.sf.basedb.core
Class ExtendedPropertyLinker
java.lang.Object
net.sf.basedb.core.ExtendedPropertyLinker
public class ExtendedPropertyLinker
- extends Object
Used to create links from extended property values. If a regular
expression has been specified the value to link must match that
regular expression. The url should contain the marker {value}
which will be replaced with the value to link.
- Version:
- 2.0
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REPLACE_VALUE
private static final Pattern REPLACE_VALUE
regexp
private final Pattern regexp
url
private final Matcher url
ExtendedPropertyLinker
ExtendedPropertyLinker(String regexp,
String url)
getUrl
public String getUrl(Object value)
- Create a link.
- Parameters:
value
- The value to link
- Returns:
- The link, or null if this linker doesn't match the value