Public Member Functions | |
ExamDTO () | |
ExamDTO (string filename) | |
void | setName (String s) |
String | getName () |
void | saveToXML (string s) |
void | addQuestion (ExamQuestionDTO dto) |
ArrayList | getQuestions () |
ExamQuestionDTO | getQuestion (int id) |
void | setDuration (int minutes, int seconds) |
int | getMinutes () |
int | getSeconds () |
Private Attributes | |
ArrayList | questions = new ArrayList() |
String | name = "" |
int | durationMinutes = 0 |
int | durationSeconds = 0 |
|
Constructor for the class. This is the default construtor that takes no argument. |
|
Constructor for the class. This is the construtor that loads the exam data from an exam file.
|
|
Adds question to the exam. This method adds a question to the exam.
|
|
Getter method for the durationMinutes attribute. This is the getter method for the durationMinutes attribute that stores the minutes part of the exam duration.
|
|
Getter method for the name attribute. This is the getter method for the name attribute that stores the name of the exam.
|
|
Returns the specified question. This method returns the question with the given id.
|
|
Getter method for the questions attribute. This is the getter method for the questions attribute that stores the questions added to the exam.
|
|
Getter method for the secondsMinutes attribute. This is the getter method for the durationSeconds attribute that stores the seconds part of the exam duration.
|
|
Saves exam data. This method stores the exam data as an XML file.
|
|
Sets the durationMinutes and durationSeconds attributes. This method sets the durationMinutes and durationSeconds attributes with the specified parameters.
|
|
Setter method for the name attribute. This is the setter method for the name attribute that stores the name of the exam.
|
|
|
|
|
|
|
|
|