fr.paris.lutece.plugins.quiz.business
Class Quiz

java.lang.Object
  extended byfr.paris.lutece.plugins.quiz.business.Quiz

public class Quiz
extends java.lang.Object

This class represents business object Quiz


Constructor Summary
Quiz()
          Creates a new Quiz object.
 
Method Summary
 int getId()
          Returns the identifier of this Quiz.
 java.lang.String getName()
          Returns the name of this quiz.
 java.util.Collection getQuestions()
          Returns a collection of questions
 boolean isEnabled()
          Returns The boolean status of quiz
 void setId(int nIdQuiz)
          Sets the identifier of the quiz to the specified integer.
 void setName(java.lang.String strName)
          Sets the name of the quiz to the specified string
 void setQuestions(java.util.Collection questions)
          Sets the list of questions on a Collection
 void setStatus(int status)
          Set The Boolean status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quiz

public Quiz()
Creates a new Quiz object.

Method Detail

getId

public int getId()
Returns the identifier of this Quiz.

Returns:
_nIdQuiz The Quiz identifier

setId

public void setId(int nIdQuiz)
Sets the identifier of the quiz to the specified integer.

Parameters:
nIdQuiz - The quiz identifier

getName

public java.lang.String getName()
Returns the name of this quiz.

Returns:
_strName The name of the quiz

setName

public void setName(java.lang.String strName)
Sets the name of the quiz to the specified string

Parameters:
strName - The new name

isEnabled

public boolean isEnabled()
Returns The boolean status of quiz

Returns:
_bIsEnabled The boolean

setStatus

public void setStatus(int status)
Set The Boolean status

Parameters:
status - The Status

getQuestions

public java.util.Collection getQuestions()
Returns a collection of questions

Returns:
_questions The list of questions

setQuestions

public void setQuestions(java.util.Collection questions)
Sets the list of questions on a Collection

Parameters:
questions - The Collection of quetsions