Package it.unimib.unimibmodules.model
Class CloseEndedAnswer
java.lang.Object
it.unimib.unimibmodules.model.CloseEndedAnswer
Represents a closed-ended answer.
- Version:
- 0.4.1
- Author:
- Davide Costantini, Lorenzo Occhipinti
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
private int idThe id of the close-ended answer. -
text
The text of the close-ended answer. -
question
The question to which this answer belongs. -
answers
Answers where this close-ended answer has been selected
-
-
Constructor Details
-
CloseEndedAnswer
public CloseEndedAnswer()Creates an empty close-ended answer.
-
-
Method Details
-
setText
Modifies the text of the close-ended answer, settingtext
as the new value.- Parameters:
text
- the new text value- Throws:
EmptyFieldException
- if text is empty
-