|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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()
ProjectProjectRepository
implementation to decide how projects should be named.
getName in interface Projectpublic T getRepository()
public DirectoryView getDirectory()
Project
getDirectory in interface Projectpublic Set<ProjectType> getTypes()
Project
getTypes in interface Projectpublic boolean isOfType(ProjectType pt)
Project
isOfType in interface Projectpt - The project type.
true if the project is of the specified type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||