|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tomp.el.author.Tasks
public class Tasks
Constructor Summary | |
---|---|
Tasks(Course c)
Creates a new instance of Tasks, sets it course. |
Method Summary | |
---|---|
void |
addTask(Task c)
Adds a task to tasks. |
java.io.File |
getDirectory()
Returns tasks' directory. |
java.io.File |
getFile()
Returns the tasks' XML file. |
Task |
getFirstTask()
Returns first lecture in lectures map. |
java.io.File |
getInfoFile()
Returns the tasks' info XML file. |
Task |
getTask(java.lang.String id)
Returns task with selected ID. |
java.util.Collection<Task> |
getTasks()
Returns tasks' values. |
Task |
newTask(java.lang.String id)
Creates a new Task and puts it into tasks. |
void |
removeTask(Task t)
Remove the task from tasks collection and deletes its XML file. |
java.lang.String |
toString()
Creates string of tasks' IDs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tasks(Course c)
c
- Course containing these tasks.Method Detail |
---|
public java.io.File getDirectory()
public java.io.File getFile()
public java.io.File getInfoFile()
public java.util.Collection<Task> getTasks()
public void addTask(Task c)
c
- Task to addpublic Task getTask(java.lang.String id)
id
- ID of task to return
public java.lang.String toString()
toString
in class java.lang.Object
public Task newTask(java.lang.String id) throws java.io.IOException
id
- ID of new task
java.io.IOException
public Task getFirstTask()
public void removeTask(Task t)
t
- task to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |