testtool.teacher_app.test_view
Class TestBank

java.lang.Object
  extended by testtool.teacher_app.test_view.TestBank

public abstract class TestBank
extends java.lang.Object


Nested Class Summary
private static class TestBank.SortFlag
          This enum contains all the different ways a test can be sorted.
private  class TestBank.TestFilter
          This class contains all of the different filtering options you can filter tests by.
 
Field Summary
private  java.util.List<Test> shownTests
           
private  java.util.List<Test> tests
           
 
Constructor Summary
TestBank()
           
 
Method Summary
abstract  void add(Test test)
          add will add a test to the TestBank.
abstract  void delete(int index)
          delete will remove the test from the list at the given index
abstract  void edit(Test test)
          edit will allow the user to edit a test's data that is already in the list
abstract  void filter(TestBank.TestFilter filter)
          filter will modify the shown tests list to only include tests that the given filter allows
abstract  void sort(TestBank.SortFlag flag)
          sort will sort the list of tests in ascending order based on the flag given
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tests

private java.util.List<Test> tests

shownTests

private java.util.List<Test> shownTests
Constructor Detail

TestBank

public TestBank()
Method Detail

add

public abstract void add(Test test)
add will add a test to the TestBank.


delete

public abstract void delete(int index)
delete will remove the test from the list at the given index


edit

public abstract void edit(Test test)
edit will allow the user to edit a test's data that is already in the list


sort

public abstract void sort(TestBank.SortFlag flag)
sort will sort the list of tests in ascending order based on the flag given


filter

public abstract void filter(TestBank.TestFilter filter)
filter will modify the shown tests list to only include tests that the given filter allows