com.atlassian.jira.jql.context
Class ClauseContextImpl

java.lang.Object
  extended by com.atlassian.jira.jql.context.ClauseContextImpl
All Implemented Interfaces:
ClauseContext

public class ClauseContextImpl
extends Object
implements ClauseContext

Since:
v4.0

Constructor Summary
ClauseContextImpl()
           
ClauseContextImpl(Set<ProjectIssueTypeContext> contexts)
           
 
Method Summary
 boolean containsGlobalContext()
           
static ClauseContext createGlobalClauseContext()
           
 boolean equals(Object o)
           
 Set<ProjectIssueTypeContext> getContexts()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClauseContextImpl

public ClauseContextImpl()

ClauseContextImpl

public ClauseContextImpl(Set<ProjectIssueTypeContext> contexts)
Method Detail

createGlobalClauseContext

public static ClauseContext createGlobalClauseContext()
Returns:
a ClauseContextImpl containing a single ProjectIssueTypeContext which represents the All Projects/All Issue Types context.

getContexts

public Set<ProjectIssueTypeContext> getContexts()
Specified by:
getContexts in interface ClauseContext
Returns:
the project/issue type contexts that are defined by a clause.

containsGlobalContext

public boolean containsGlobalContext()
Specified by:
containsGlobalContext in interface ClauseContext
Returns:
true if one of the contexts is the same as ProjectIssueTypeContextImpl.createGlobalContext().

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.