public static class JiraKeyUtilsAccesor.MockKeyMatcher extends Object
Constructor and Description |
---|
MockKeyMatcher(String projectRegex) |
Modifier and Type | Method and Description |
---|---|
String |
getIssueKeyRegex() |
String |
getLink(String key) |
String |
getProjectKeyRegex() |
boolean |
isIgnoreUrlWithKey() |
boolean |
isKeyDetectionBackwardsCompatible() |
boolean |
isKeyInString(String s) |
boolean |
isValidIssueKey(String issueKey) |
boolean |
isValidProjectKey(String projectKey)
Validates the given project key
|
public MockKeyMatcher(String projectRegex)
public boolean isKeyInString(String s)
isKeyInString
in interface JiraKeyUtils.KeyMatcher
public String getProjectKeyRegex()
getProjectKeyRegex
in interface JiraKeyUtils.KeyMatcher
public String getIssueKeyRegex()
getIssueKeyRegex
in interface JiraKeyUtils.KeyMatcher
public boolean isValidIssueKey(String issueKey)
isValidIssueKey
in interface JiraKeyUtils.KeyMatcher
public boolean isValidProjectKey(String projectKey)
isValidProjectKey
in interface JiraKeyUtils.KeyMatcher
projectKey
- project keypublic boolean isIgnoreUrlWithKey()
isIgnoreUrlWithKey
in interface JiraKeyUtils.KeyMatcher
public boolean isKeyDetectionBackwardsCompatible()
isKeyDetectionBackwardsCompatible
in interface JiraKeyUtils.KeyMatcher
public String getLink(String key)
getLink
in interface JiraKeyUtils.KeyMatcher
Copyright © 2002-2017 Atlassian. All Rights Reserved.