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 java.lang.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(java.lang.Object o)
           
 AllProjectsContext getInstance()
           
 java.lang.Long getProjectId()
           
 boolean isAll()
          Indicates the special case of all projects that are not enumerated.
 java.lang.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 java.lang.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(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2010 Atlassian. All Rights Reserved.