Package it.quizzy.logiclayer.factory
Class DomandeFactory
java.lang.Object
it.quizzy.logiclayer.factory.DomandeFactory
Classe Factory per la creazione delle domande
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DomandacreateDomanda(TipoDomanda type, Integer idQuiz, String domanda, String rispostaCorretta, List<String> possibiliRisposte) Metodo per la creazione delle domande
-
Constructor Details
-
DomandeFactory
public DomandeFactory()
-
-
Method Details
-
createDomanda
public static Domanda createDomanda(TipoDomanda type, Integer idQuiz, String domanda, String rispostaCorretta, List<String> possibiliRisposte) throws IllegalArgumentException, InvalidRecordInsertionException, IOException Metodo per la creazione delle domande- Parameters:
type- tipo di domandaidQuiz- quiz che conterrĂ la domandadomanda- stringa della domandarispostaCorretta- stringa risposta correttapossibiliRisposte- lista di possibili risposte, se di tipo VeroFalso il parametro viene ignorato- Returns:
- Domanda creata
- Throws:
IllegalArgumentExceptionInvalidRecordInsertionExceptionIOException
-