|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CommentTransformationHelper
Reprensents the class indended to provide all information needed for comment transformation.
Example: Let's consider the comment "blah-blah-blah #1234", where "#1234" is the issue id. When shown in UI, this substring is replaced with a link to a corresponding issue and a popup; and in order to construct such a replacement, server needs to know:
Note: each CommentTransformationHelper corresponds to a single issue provider.
| Method Summary | |
|---|---|
java.lang.String |
composeUrl(java.lang.String id)
Returns the URL corresponding to the matched id. |
java.lang.String |
extractId(java.lang.String match)
Returns the issue id by the matched substring. |
java.util.regex.Pattern |
getSearchPattern()
Returns the search pattern of issue id. |
| Method Detail |
|---|
@NotNull java.util.regex.Pattern getSearchPattern()
@NotNull
java.lang.String extractId(@NotNull
java.lang.String match)
Method is useful, if the issue id doesn't equal to the match (e.g. the match is "#1234", while actual issue id is just "1234").
match - the matched substring
@NotNull
java.lang.String composeUrl(@NotNull
java.lang.String id)
id - matched id
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||