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: 2019-05-21 13:37:09 +0200 (tis, 21 maj 2019) $
  • Field Details

    • REPLACE_VALUE

      private static final Pattern REPLACE_VALUE
    • regexp

      private final Pattern regexp
    • url

      private final Matcher url
  • Constructor Details

    • ExtendedPropertyLinker

      ExtendedPropertyLinker(String regexp, String url)
  • Method Details

    • 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