net.sf.statcvs.weblinks.bugs
Class BugTracker
public abstract class BugTracker
A BugTracker generates links to numbered bugs. We use this to turn
bug references in commit log messages (e.g. "Bug #123") into clickable
links.
$Id: BugTracker.java,v 1.8 2008/04/02 11:22:16 benoitx Exp $- Richard Cyganiak (richard@cyganiak.de)
BugTracker(String baseURL) - Creates a new BugTracker instance.
|
String | baseURL() - Returns the bug tracker's base URL.
|
abstract String | bugURL(String bugNumber) - Returns the URL of the bug tracker page about a certain bug.
|
abstract String | getName() - Returns the name of the bug tracker
|
String | toHTMLWithLinks(String plainTextInput) - Filters a String, e.g.
|
NO_BUG_TRACKER
public static final BugTracker NO_BUG_TRACKER
A null object that can be used in place of a real bug tracker.
bugRegex
protected static final Pattern bugRegex
BugTracker
public BugTracker(String baseURL)
Creates a new BugTracker instance.
baseURL
- The bug tracker's base URL; a slash is appended
if it doesn't end in a slash
baseURL
public String baseURL()
Returns the bug tracker's base URL.
- The bug tracker's base URL
bugURL
public abstract String bugURL(String bugNumber)
Returns the URL of the bug tracker page about a certain bug.
bugNumber
- The bug number; one or more digits.
getName
public abstract String getName()
Returns the name of the bug tracker
- the name of the bug tracker
toHTMLWithLinks
public String toHTMLWithLinks(String plainTextInput)
Filters a String, e.g. a commit message, replacing bug references with
links to the tracker.
plainTextInput
- String to examine for bug references
- A copy of
input
, with bug references replaced with HTML links