com.atlassian.jira.jql.context
Class AllProjectsContext

java.lang.Object
  extended by com.atlassian.jira.jql.context.AllProjectsContext
All Implemented Interfaces:
ProjectContext

public class AllProjectsContext
extends Object
implements ProjectContext

Represents the specicial case of all projects, in an unenumerated form.

Since:
v4.0

Field Summary
static AllProjectsContext INSTANCE
           
 
Method Summary
 boolean equals(Object o)
           
 AllProjectsContext getInstance()
           
 Long getProjectId()
           
 boolean isAll()
          Indicates the special case of all projects that are not enumerated.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final AllProjectsContext INSTANCE
Method Detail

getInstance

public AllProjectsContext getInstance()

getProjectId

public Long getProjectId()
Specified by:
getProjectId in interface ProjectContext
Returns:
the project id for this context element.

isAll

public boolean isAll()
Description copied from interface: ProjectContext
Indicates the special case of all projects that are not enumerated. If this is true then the value for projectId will be null.

Specified by:
isAll in interface ProjectContext
Returns:
true if all, false otherwise.

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2011 Atlassian. All Rights Reserved.