PapaganEgitim::ExamDTO Class Reference

DTO class to store exam data. More...

List of all members.

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


Detailed Description

DTO class to store exam data.


Constructor & Destructor Documentation

PapaganEgitim::ExamDTO::ExamDTO  )  [inline]
 

Constructor for the class.

This is the default construtor that takes no argument.

PapaganEgitim::ExamDTO::ExamDTO string  filename  )  [inline]
 

Constructor for the class.

This is the construtor that loads the exam data from an exam file.

Parameters:
filename Path of the exam file


Member Function Documentation

void PapaganEgitim::ExamDTO::addQuestion ExamQuestionDTO  dto  )  [inline]
 

Adds question to the exam.

This method adds a question to the exam.

Parameters:
dto Exam Question that will be added to the exam

int PapaganEgitim::ExamDTO::getMinutes  )  [inline]
 

Getter method for the durationMinutes attribute.

This is the getter method for the durationMinutes attribute that stores the minutes part of the exam duration.

Returns:
Minutes of the exam duration

String PapaganEgitim::ExamDTO::getName  )  [inline]
 

Getter method for the name attribute.

This is the getter method for the name attribute that stores the name of the exam.

Returns:
Name of the exam

ExamQuestionDTO PapaganEgitim::ExamDTO::getQuestion int  id  )  [inline]
 

Returns the specified question.

This method returns the question with the given id.

Returns:
Question with the given id

ArrayList PapaganEgitim::ExamDTO::getQuestions  )  [inline]
 

Getter method for the questions attribute.

This is the getter method for the questions attribute that stores the questions added to the exam.

Returns:
List of questions

int PapaganEgitim::ExamDTO::getSeconds  )  [inline]
 

Getter method for the secondsMinutes attribute.

This is the getter method for the durationSeconds attribute that stores the seconds part of the exam duration.

Returns:
Seconds of the exam duration

void PapaganEgitim::ExamDTO::saveToXML string  s  )  [inline]
 

Saves exam data.

This method stores the exam data as an XML file.

Parameters:
s Name of the XML file

void PapaganEgitim::ExamDTO::setDuration int  minutes,
int  seconds
[inline]
 

Sets the durationMinutes and durationSeconds attributes.

This method sets the durationMinutes and durationSeconds attributes with the specified parameters.

Parameters:
minutes Minutes part of the exam duration
seconds Seconds part of the exam duration

void PapaganEgitim::ExamDTO::setName String  s  )  [inline]
 

Setter method for the name attribute.

This is the setter method for the name attribute that stores the name of the exam.

Parameters:
s Name of the exam


Member Data Documentation

int PapaganEgitim::ExamDTO::durationMinutes = 0 [private]
 

int PapaganEgitim::ExamDTO::durationSeconds = 0 [private]
 

String PapaganEgitim::ExamDTO::name = "" [private]
 

ArrayList PapaganEgitim::ExamDTO::questions = new ArrayList() [private]
 


The documentation for this class was generated from the following file:
Generated on Mon May 29 01:05:01 2006 for PAPAGAN by  doxygen 1.4.6-NO