Package org.ametys.odf.course
Interface CourseContainer
-
- All Known Implementing Classes:
CourseList
public interface CourseContainer
Interface representing a container of courses
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsCourse(String courseId)Determines if the container contains a coursesList<Course>getCourses()Get the list of childCoursebooleanhasCourses()Determines if the container contains courses
-
-
-
Method Detail
-
getCourses
List<Course> getCourses()
Get the list of childCourse- Returns:
- the courses id in a List
-
containsCourse
boolean containsCourse(String courseId)
Determines if the container contains a courses- Parameters:
courseId- id of theCourseto test- Returns:
- true if the course exists
-
hasCourses
boolean hasCourses()
Determines if the container contains courses- Returns:
- true if the container contains at least one course
-
-