|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tomp.el.author.Projects
public class Projects
Constructor Summary | |
---|---|
Projects(Course c)
Creates a new instance of Projects and sets its course. |
Method Summary | |
---|---|
void |
addProject(Project c)
Adds a project to projects. |
java.io.File |
getDirectory()
Returns Projects' directory. |
java.io.File |
getFile()
Returns the projects' XML file. |
Project |
getFirstProject()
Returns first project in projects map. |
java.io.File |
getInfoFile()
Returns the projects' info XML file. |
Project |
getProject(java.lang.String id)
Returns project with selected ID. |
java.util.Collection<Project> |
getProjects()
Returns projects' values. |
Project |
newProject(java.lang.String id)
Creates a new project and puts it into lprojects. |
void |
removeProject(Project p)
Remove the project from projects collection and deletes its XML file. |
java.lang.String |
toString()
Creates string of proejcts' IDs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Projects(Course c)
c
- Course containing these projects.Method Detail |
---|
public java.io.File getDirectory()
public java.io.File getFile()
public java.io.File getInfoFile()
public java.util.Collection<Project> getProjects()
public void addProject(Project c)
c
- Project to addpublic Project newProject(java.lang.String id) throws java.io.IOException
id
- ID of new project
java.io.IOException
public void removeProject(Project p)
p
- project to removepublic Project getProject(java.lang.String id)
id
- ID of project to return
public Project getFirstProject()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |