|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tomp.el.author.CourseTree
public class CourseTree
Field Summary | |
---|---|
static java.lang.String |
buildPropertiesFileName
|
Constructor Summary | |
---|---|
CourseTree(java.io.File root)
Creates a new instance of CourseTree ans sets its root file. |
Method Summary | |
---|---|
void |
addCourse(Course c)
Adds a Course to a CourseTree. |
static boolean |
deleteDir(java.io.File dir)
Deletes a non-empty directory. |
Course |
getCourse(java.lang.String id)
Returns Course from courses. |
java.util.Collection<Course> |
getCourses()
Returns a collection of Courses' values. |
Course |
getCurrentCourse()
Returns current course from properties. |
Lecture |
getCurrentLecture()
Returns current lecture from properties. |
java.lang.String |
getCurrentParameters()
Returns current parameters from properties. |
java.lang.String |
getCurrentTerm()
Returns current term from properties. |
java.io.File |
getDirectory()
Returns the root file. |
Course |
getFirstCourse()
Returns first course in courses sorted map. |
java.lang.String |
getPrincipalDoc()
Returns principal document. |
Course |
newCourse(java.lang.String id)
Created a new Course, makes its directories (also for its lectures), its main-info.xml file and puts the Course into the CourseTree. |
void |
readBuildProperties()
Reads build properties from a file. |
void |
removeCourse(Course c)
|
java.lang.String |
toString()
Creates string of CourseTree's courses. |
void |
writeBuildProperties()
Writes build properties to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String buildPropertiesFileName
Constructor Detail |
---|
public CourseTree(java.io.File root)
root
- Root fileMethod Detail |
---|
public java.util.Collection<Course> getCourses()
public void addCourse(Course c)
c
- Course to add.public Course newCourse(java.lang.String id) throws java.io.IOException
id
- Course's ID.
when
java.io.IOException
public void removeCourse(Course c)
public static boolean deleteDir(java.io.File dir)
dir
- directory to delete
public Course getCourse(java.lang.String id)
id
- Course's ID.
public Course getFirstCourse()
public void readBuildProperties()
public void writeBuildProperties()
public java.lang.String getCurrentTerm()
public Course getCurrentCourse()
public Lecture getCurrentLecture()
public java.lang.String getCurrentParameters()
public java.lang.String getPrincipalDoc()
public java.io.File getDirectory()
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 |