|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object registrationsystem.model.Student
public class Student
Representation for a student
Constructor Summary | |
---|---|
Student(java.lang.String name)
Constructor |
Method Summary | |
---|---|
void |
addEnrolledIn(java.lang.String courseId,
EnrolledIn newEnrolledIn)
Add a new enrollment for a course the student is in |
java.lang.String |
getName()
Accessor for the student's name |
void |
printReport()
Print a report on the student - list courses enrolled in |
void |
removeEnrolledIn(java.lang.String courseId)
Remove the enrollment in a specific course |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Student(java.lang.String name)
name
- the student's nameMethod Detail |
---|
public java.lang.String getName()
public void addEnrolledIn(java.lang.String courseId, EnrolledIn newEnrolledIn) throws java.lang.IllegalArgumentException
courseId
- the id of the coursenewEnrolledIn
- the new enrollment to add
java.lang.IllegalArgumentException
- if the student is already enrolled in this coursepublic void removeEnrolledIn(java.lang.String courseId) throws java.lang.IllegalArgumentException
courseId
- the course
java.lang.IllegalArgumentException
- if the student is not enrolled in coursepublic void printReport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |