public class TestQuestion extends Model
Constructor and Description |
---|
TestQuestion(long id,
long selectedCourseCode,
String stem,
String anstype,
boolean shuffle,
String feedback) |
TestQuestion(long id,
String stem,
String anstype,
boolean shuffle,
String feedback) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<TestAnswer> |
getAnswers()
Gets question's answers
|
String |
getAnswerType()
Gets answer type
|
List<TestAnswer> |
getCorrectAnswers()
Gets correct answer for this test
|
long |
getCrsCod()
Gets question code
|
String |
getFeedback()
Gets the text of the question's feedback
|
Object |
getProperty(int param) |
int |
getPropertyCount() |
void |
getPropertyInfo(int param,
Hashtable arg1,
PropertyInfo propertyInfo) |
boolean |
getShuffle()
Gets shuffle flag
|
String |
getStem()
Gets question's text
|
int |
hashCode() |
void |
setAnswers(List<TestAnswer> answers)
Sets question's answers
|
void |
setAnswerType(String anstype)
Sets answer type
|
void |
setCrsCod(long crsCod)
Sets question code
|
void |
setFeedback(String feedback)
Sets the text of the question's feedback
|
void |
setProperty(int param,
Object obj) |
void |
setShuffle(boolean shuffle)
Sets shuffle flag
|
void |
setStem(String stem)
Sets question's text
|
void |
shuffleAnswers()
Shuffles the list of related answers in a question
|
String |
toString() |
public TestQuestion(long id, String stem, String anstype, boolean shuffle, String feedback)
id
- Test identifierstem
- Question's textanstype
- Answer typeshuffle
- Flag to shuffle answers in testfeedback
- Text of the question's feedbackpublic TestQuestion(long id, long selectedCourseCode, String stem, String anstype, boolean shuffle, String feedback)
id
- Test identifierselectedCourseCode
- Course codestem
- Question's textanstype
- Answer typeshuffle
- Flag to shuffle answers in testfeedback
- Text of the question's feedbackpublic long getCrsCod()
public void setCrsCod(long crsCod)
crsCod
- Question codepublic String getStem()
public void setStem(String stem)
stem
- Question's textpublic String getAnswerType()
public void setAnswerType(String anstype)
anstype
- Answer typepublic boolean getShuffle()
public void setShuffle(boolean shuffle)
shuffle
- Shuffle flagpublic List<TestAnswer> getAnswers()
public void setAnswers(List<TestAnswer> answers)
answers
- Question's answerspublic String getFeedback()
public void setFeedback(String feedback)
feedback
- Text of the question's feedbackpublic List<TestAnswer> getCorrectAnswers()
public void shuffleAnswers()
public Object getProperty(int param)
public int getPropertyCount()
public void getPropertyInfo(int param, Hashtable arg1, PropertyInfo propertyInfo)
public void setProperty(int param, Object obj)