|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.project.AbstractProjectRepository<T,U>
public abstract class AbstractProjectRepository<T extends ProjectRepository,U extends ProjectRepositoryConfiguration>
Abstract base class for ProjectRepository
implementations.
The state of this object is immutable.
Constructor Summary | |
---|---|
protected |
AbstractProjectRepository(ProjectRepositoryInfoCollector<T,U> pric)
Constructor. |
Method Summary | |
---|---|
Project |
getProject(String name)
Get the named project. |
U |
getProjectRepositoryConfiguration()
Get the project repository configuration. |
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)
Is there a project with the specified name in the project repository? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractProjectRepository(ProjectRepositoryInfoCollector<T,U> pric)
ProjectRepository
implementations give this a
ProjectRepositoryInfoCollector
instance that the constructor uses
to populate itself with Project
:s.
pric
- The info collector.Method Detail |
---|
public Collection<Project> getProjects()
ProjectRepository
The returned Project
objects are entities. Subsequent calls to
this method should return the same Project
instances.
getProjects
in interface ProjectRepository
null
.ProjectRepository.getProjects(Filter)
public Collection<Project> getProjects(Filter<? super Project> filter)
ProjectRepository
getProjects
in interface ProjectRepository
filter
- The filter that a project must pass to be included in the
returned set. This filter is often of the type
ProjectFilter
.
null
.ProjectRepository.getProjects()
,
ProjectFilterUtil
public Project getProject(String name)
getProject
in interface ProjectRepository
name
- The project name.
null
if no project with the specified
name exists.public boolean hasProject(String name)
hasProject
in interface ProjectRepository
name
- The project name.
true
if there is a project with the specified name in
the project repository.public U getProjectRepositoryConfiguration()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |