2.17.2: 2011-06-17

net.sf.basedb.core
Class ExtendedPropertyLinker

java.lang.Object
  extended by 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) $

Field Summary
private  Pattern regexp
           
private static Pattern REPLACE_VALUE
           
private  Matcher url
           
 
Constructor Summary
ExtendedPropertyLinker(String regexp, String url)
           
 
Method Summary
 String getUrl(Object value)
          Create a link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPLACE_VALUE

private static final Pattern REPLACE_VALUE

regexp

private final Pattern regexp

url

private final Matcher url
Constructor Detail

ExtendedPropertyLinker

ExtendedPropertyLinker(String regexp,
                       String url)
Method Detail

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

2.17.2: 2011-06-17