Methods Summary |
---|
void | addQuestion(Q q)Add a question to the list. Construct and add its QView
questions.addElement(q);
|
public java.lang.String | getCourseNumber()
return Integer.toString(crsNum);
|
public java.lang.String | getCourseTitle()
return crsName;
|
public char | getExamName()
return examName;
|
public java.lang.String | getExamVers()
return examVers;
|
public int | getNumQuestions()
return questions.size();
|
Q | getQuestion(int i)
return (Q)questions.elementAt(i);
|
java.util.Vector | getqvs()
// return qv;
throw new IllegalArgumentException("getqvs is 100% deprecated");
|
public void | setCourseNumber(java.lang.String s)
crsNum = Integer.parseInt(s);
|
public void | setCourseTitle(java.lang.String s)
crsName = s;
|
public void | setExamName(char c)
examName = c;
|
public void | setExamVers(java.lang.String s)
examVers = s;
|
void | setListData(java.util.Vector v)Install/replace the list of questions.
for (int i=0; i<v.size(); i++)
if (!(v.get(i) instanceof Q))
throw new IllegalArgumentException(
"setListData: must be a Vector of Q objects.");
questions = v;
|