Class SchoolClass

All Implemented Interfaces:
ILightObject, Serializable

public class SchoolClass extends LightObject
Since:
1.0 Oct 12, 2008, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Constructor Details

    • SchoolClass

      public SchoolClass()
    • SchoolClass

      public SchoolClass(int id, String className)
  • Method Details

    • getSchool

      public School getSchool()
      Returns:
      the school
    • setSchool

      public void setSchool(School school)
      Parameters:
      school - the school to set
    • getStudents

      public List<Student> getStudents()
      Returns:
      the students
    • add

      public void add(Student student)
    • remove

      public void remove(Student student)
    • getClassOwner

      public Teacher getClassOwner()
      Returns:
      the classOwner
    • setClassOwner

      public void setClassOwner(Teacher classOwner)
      Parameters:
      classOwner - the classOwner to set
    • getSchoolYear

      public SchoolYear getSchoolYear()
      Returns:
      the schoolYear
    • setSchoolYear

      public void setSchoolYear(SchoolYear schoolYear)
      Parameters:
      schoolYear - the schoolYear to set
    • getCourses

      public Collection<Course> getCourses()
      Returns:
      the courses
    • setCourses

      public void setCourses(Collection<Course> courses)
      Parameters:
      courses - the courses to set
    • toString

      public String toString()
      Description copied from class: AbstractLightObject
      Builds a string with variables values and the class.
      Overrides:
      toString in class AbstractLightObject
      Returns:
      a String representation of this LightObject only for debugging
      See Also:
      Object.toString()