@InjectableComponent public class JqlIssueKeySupportImpl extends Object implements JqlIssueKeySupport
JqlIssueKeySupport
interface.Constructor and Description |
---|
JqlIssueKeySupportImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValidIssueKey(String issueKey)
Determines is the passed issue key is valid for JIRA.
|
long |
parseKeyNum(String issueKey)
Return the numeric part of the issue key.
|
String |
parseProjectKey(String issueKey)
Return the project key part of the issue key.
|
public boolean isValidIssueKey(String issueKey)
JqlIssueKeySupport
isValidIssueKey
in interface JqlIssueKeySupport
issueKey
- the issue key to validate. Null will be considered an invalid key.public long parseKeyNum(String issueKey)
JqlIssueKeySupport
JqlIssueKeySupport.isValidIssueKey(String)
method can be used to determine if a key is invalid
or not.parseKeyNum
in interface JqlIssueKeySupport
issueKey
- the issue key to parse. A null key will return -1.public String parseProjectKey(String issueKey)
JqlIssueKeySupport
JqlIssueKeySupport.isValidIssueKey(String)
method can be used to determine if a key is invalid
or not.parseProjectKey
in interface JqlIssueKeySupport
issueKey
- the issue key to parse. A null key will return null.Copyright © 2002-2017 Atlassian. All Rights Reserved.