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