|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tomp.el.author.Lectures
public class Lectures
Constructor Summary | |
---|---|
Lectures(Course c)
Creates a new instance of Lectures and sets its course. |
Method Summary | |
---|---|
void |
addLecture(Lecture c)
Adds a lecture to lectures. |
java.io.File |
getDirectory()
Returns Lectures' directory. |
java.io.File |
getFile()
Returns the lectures' XML file. |
Lecture |
getFirstLecture()
Returns first lecture in lectures map. |
java.io.File |
getInfoFile()
Returns the lectures' info XML file. |
Lecture |
getLecture(java.lang.String id)
Returns lecture with selected ID. |
java.util.Collection<Lecture> |
getLectures()
Returns lectures' values. |
Lecture |
newLecture(java.lang.String id)
Creates a new lecture and puts it into lectures. |
void |
removeLecture(Lecture l)
Remove the lecture from lectures collection and deletes its XML file. |
java.lang.String |
toString()
Creates string of lectures' IDs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Lectures(Course c)
c
- Course containing these lectures.Method Detail |
---|
public java.io.File getDirectory()
public java.io.File getFile()
public java.io.File getInfoFile()
public java.util.Collection<Lecture> getLectures()
public void addLecture(Lecture c)
c
- Lecture to addpublic Lecture newLecture(java.lang.String id) throws java.io.IOException
id
- ID of new lecture
java.io.IOException
public void removeLecture(Lecture l)
l
- lecture to removepublic Lecture getLecture(java.lang.String id)
id
- ID of lecture to return
public Lecture getFirstLecture()
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 |