|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.weblinks.bugs.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.
Field Summary | |
---|---|
protected static java.util.regex.Pattern |
bugRegex
|
static BugTracker |
NO_BUG_TRACKER
A null object that can be used in place of a real bug tracker. |
Constructor Summary | |
---|---|
BugTracker(java.lang.String baseURL)
Creates a new BugTracker instance. |
Method Summary | |
---|---|
java.lang.String |
baseURL()
Returns the bug tracker's base URL. |
abstract java.lang.String |
bugURL(java.lang.String bugNumber)
Returns the URL of the bug tracker page about a certain bug. |
abstract java.lang.String |
getName()
Returns the name of the bug tracker |
java.lang.String |
toHTMLWithLinks(java.lang.String plainTextInput)
Filters a String, e.g. a commit message, replacing bug references with links to the tracker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.regex.Pattern bugRegex
public static final BugTracker NO_BUG_TRACKER
Constructor Detail |
---|
public BugTracker(java.lang.String baseURL)
baseURL
- The bug tracker's base URL; a slash is appended
if it doesn't end in a slashMethod Detail |
---|
public abstract java.lang.String getName()
public java.lang.String baseURL()
public abstract java.lang.String bugURL(java.lang.String bugNumber)
bugNumber
- The bug number; one or more digits.
public java.lang.String toHTMLWithLinks(java.lang.String plainTextInput)
plainTextInput
- String to examine for bug references
input
, with bug references replaced with HTML links
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |