|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schmant.project.AbstractProject<T>
public abstract class AbstractProject<T extends ProjectRepository>
This is an abstract base class for Project
implementations.
Constructor Summary | |
---|---|
protected |
AbstractProject(String name,
T rep,
DirectoryView dir,
ProjectType[] types)
|
Method Summary | |
---|---|
DirectoryView |
getDirectory()
Get the project's home directory. |
String |
getName()
Get the name of this project. |
T |
getRepository()
|
Set<ProjectType> |
getTypes()
Get the project types for the project. |
boolean |
isOfType(ProjectType pt)
Is this project of the specified type? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractProject(String name, T rep, DirectoryView dir, ProjectType[] types)
Method Detail |
---|
public String getName()
Project
ProjectRepository
implementation to decide how projects should be named.
getName
in interface Project
public T getRepository()
public DirectoryView getDirectory()
Project
getDirectory
in interface Project
public Set<ProjectType> getTypes()
Project
getTypes
in interface Project
public boolean isOfType(ProjectType pt)
Project
isOfType
in interface Project
pt
- The project type.
true
if the project is of the specified type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |