public class TestQuestion extends Model
Modifier and Type | Field and Description |
---|---|
private List<TestAnswer> |
answers
Question's answers
|
private String |
answerType
Answer type
|
private long |
crsCod
Course code
|
private String |
feedback
Question's feedback
|
private static org.ksoap2.serialization.PropertyInfo |
PI_ansType |
private static org.ksoap2.serialization.PropertyInfo |
PI_editTime |
private static org.ksoap2.serialization.PropertyInfo |
PI_feedback |
private static org.ksoap2.serialization.PropertyInfo |
PI_id |
private static org.ksoap2.serialization.PropertyInfo[] |
PI_PROP_ARRAY |
private static org.ksoap2.serialization.PropertyInfo |
PI_shuffle |
private static org.ksoap2.serialization.PropertyInfo |
PI_stem |
private boolean |
shuffle
Flag to shuffle answers in test
|
private String |
stem
Question's text
|
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,
org.ksoap2.serialization.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() |
private long crsCod
private String stem
private String answerType
private boolean shuffle
private String feedback
private List<TestAnswer> answers
private static final org.ksoap2.serialization.PropertyInfo PI_id
private static final org.ksoap2.serialization.PropertyInfo PI_stem
private static final org.ksoap2.serialization.PropertyInfo PI_editTime
private static final org.ksoap2.serialization.PropertyInfo PI_ansType
private static final org.ksoap2.serialization.PropertyInfo PI_shuffle
private static final org.ksoap2.serialization.PropertyInfo PI_feedback
private static org.ksoap2.serialization.PropertyInfo[] PI_PROP_ARRAY
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, org.ksoap2.serialization.PropertyInfo propertyInfo)
public void setProperty(int param, Object obj)