|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectRepository
The project repository is a repository for Project
:s, such as an
Eclipse Workspace.
Project
:s should be entity objects. I.e., a ProjectRepository
should never use several Project
objects for representing the same
project.
Method Summary | |
---|---|
Project |
getProject(String name)
Get the named project from this repository, if it exists. |
Collection<Project> |
getProjects()
Get all projects stored in this repository. |
Collection<Project> |
getProjects(Filter<? super Project> filter)
Get all projects stored in this repository that passes the supplied filter. |
boolean |
hasProject(String name)
Does there exist a project with the specified name in this repository? |
Method Detail |
---|
Collection<Project> getProjects()
The returned Project
objects are entities. Subsequent calls to
this method should return the same Project
instances.
null
.getProjects(Filter)
Collection<Project> getProjects(Filter<? super Project> filter)
filter
- The filter that a project must pass to be included in the
returned set. This filter is often of the type
ProjectFilter
.
null
.getProjects()
,
ProjectFilterUtil
boolean hasProject(String name)
name
- The project name.
true
if there exists a project with the specified name in
this repository.Project getProject(String name)
The returned Project
object is an entity object. Subsequent
requests for the same project should return the same Project
instance.
name
- The project name.
Project
, or null
if it does not exist.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |