|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttesttool.teacher_app.question_view.QuestionBank
public abstract class QuestionBank
A QuestionBank consists of a collection of questions created by the user. The QuestionBank provides options to manage a single question as well as to manage the collection of questions shown.
Nested Class Summary | |
---|---|
private class |
QuestionBank.QuestionFilter
The QuestionFilter class contains a collection of data fields that can be filled and applied by the professor in order to omit seeing certain questions in the QuestionBank. |
private static class |
QuestionBank.SortFlag
The flags used to sort the Question Bank columns. |
Field Summary | |
---|---|
private java.util.Collection<Question> |
questions
The collection of questions created by the user and stored in the database. |
private java.util.Collection<Question> |
shownQuestions
A collection of questions viewable by the user. |
Constructor Summary | |
---|---|
QuestionBank()
|
Method Summary | |
---|---|
(package private) abstract void |
add(Question q)
Add the given Question to the given QuestionBank. |
abstract void |
delete(Question q)
Delete the given question from the given QuestionBank. |
(package private) abstract void |
edit(Question old_q,
Question new_q)
Change the given old Question to the given new question. |
(package private) abstract Question |
filterById(int ID)
Find a question by unique id. |
(package private) abstract void |
preview(Question q)
Preview the given question from the given QuestionBank. |
abstract void |
sort(QuestionBank.SortFlag flag)
Sorts questions per column based on flags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Collection<Question> questions
private java.util.Collection<Question> shownQuestions
Constructor Detail |
---|
public QuestionBank()
Method Detail |
---|
abstract void add(Question q)
public abstract void delete(Question q)
abstract void edit(Question old_q, Question new_q)
abstract void preview(Question q)
abstract Question filterById(int ID)
public abstract void sort(QuestionBank.SortFlag flag)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |