net.sf.tomp.el.author
Class Course

java.lang.Object
  extended by net.sf.tomp.el.author.Course
All Implemented Interfaces:
Described

public class Course
extends java.lang.Object
implements Described


Field Summary
static java.lang.String MAIN_FILE
           
static java.lang.String MAIN_INFO_FILE
           
static java.lang.String SRC_DIR
           
 
Constructor Summary
Course(CourseTree t, java.lang.String id)
          Creates a new instance of Course, sets its CourseTree and its ID.
 
Method Summary
 CourseTree getCourseTree()
          Returns the courseTree.
 Description getDescription()
          Returns the description.
 java.io.File getDirectory()
          Returns the CourseTree directory.
 java.io.File getFile()
          Returns the main XML document.
 java.lang.String getId()
          Returns the Course's ID.
 java.io.File getInfoFile()
          Returns the main informative XML document.
 Lectures getLectures()
          Returns the lectures.
 Practices getPractices()
          Returns the practices.
 Projects getProjects()
          Returns the projects.
 java.io.File getSrcDirectory()
          Returns the source directory.
 Tasks getTasks()
          Returns the tasks.
 void setDescription(Description description)
          Sets the description set.
 java.lang.String toString()
          Creates string of course's ID and its lectures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SRC_DIR

public static final java.lang.String SRC_DIR
See Also:
Constant Field Values

MAIN_FILE

public static final java.lang.String MAIN_FILE
See Also:
Constant Field Values

MAIN_INFO_FILE

public static final java.lang.String MAIN_INFO_FILE
See Also:
Constant Field Values
Constructor Detail

Course

public Course(CourseTree t,
              java.lang.String id)
Creates a new instance of Course, sets its CourseTree and its ID. Sets the default Description(title, body). Created a new instance of its Lectures.

Parameters:
t - CoursTree of the new Course
id - Course's ID.
Method Detail

getDirectory

public java.io.File getDirectory()
Returns the CourseTree directory.

Returns:
CourseTree directory

getSrcDirectory

public java.io.File getSrcDirectory()
Returns the source directory.

Returns:
Source directory

getFile

public java.io.File getFile()
Returns the main XML document.

Returns:
Main XML file.

getInfoFile

public java.io.File getInfoFile()
Returns the main informative XML document.

Returns:
Main informative XML file.

getId

public java.lang.String getId()
Returns the Course's ID.

Returns:
Course's ID.

getCourseTree

public CourseTree getCourseTree()
Returns the courseTree.

Returns:
CourseTree

getLectures

public Lectures getLectures()
Returns the lectures.

Returns:
Lectures

getTasks

public Tasks getTasks()
Returns the tasks.

Returns:
Tasks

getPractices

public Practices getPractices()
Returns the practices.

Returns:
Lectures

getProjects

public Projects getProjects()
Returns the projects.

Returns:
Lectures

toString

public java.lang.String toString()
Creates string of course's ID and its lectures.

Overrides:
toString in class java.lang.Object
Returns:
String containing course's ID and its lectures.

getDescription

public Description getDescription()
Returns the description.

Specified by:
getDescription in interface Described
Returns:
Description

setDescription

public void setDescription(Description description)
Sets the description set.

Specified by:
setDescription in interface Described
Parameters:
description - The description to set.