com.atlassian.jira.util
Class JiraKeyUtils.DefaultKeyMatcher

java.lang.Object
  extended by com.atlassian.jira.util.JiraKeyUtils.DefaultKeyMatcher
All Implemented Interfaces:
JiraKeyUtils.KeyMatcher
Enclosing class:
JiraKeyUtils

static class JiraKeyUtils.DefaultKeyMatcher
extends Object
implements JiraKeyUtils.KeyMatcher


Constructor Summary
JiraKeyUtils.DefaultKeyMatcher()
           
 
Method Summary
 String getIssueKeyRegex()
           
 String getProjectKeyRegex()
           
 boolean isKeyInString(String s)
           
 boolean isValidIssueKey(String issueKey)
           
 boolean isValidProjectKey(String projectKey)
          Validates the given project key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraKeyUtils.DefaultKeyMatcher

public JiraKeyUtils.DefaultKeyMatcher()
Method Detail

isKeyInString

public boolean isKeyInString(String s)
Specified by:
isKeyInString in interface JiraKeyUtils.KeyMatcher

getProjectKeyRegex

public String getProjectKeyRegex()
Specified by:
getProjectKeyRegex in interface JiraKeyUtils.KeyMatcher

getIssueKeyRegex

public String getIssueKeyRegex()
Specified by:
getIssueKeyRegex in interface JiraKeyUtils.KeyMatcher

isValidIssueKey

public boolean isValidIssueKey(String issueKey)
Specified by:
isValidIssueKey in interface JiraKeyUtils.KeyMatcher

isValidProjectKey

public boolean isValidProjectKey(String projectKey)
Validates the given project key

Specified by:
isValidProjectKey in interface JiraKeyUtils.KeyMatcher
Parameters:
projectKey - project key
Returns:
true if valid, false otherwise


Copyright © 2002-2007 Atlassian. All Rights Reserved.