A C D E G H I K M O P R S U V

A

addError(String) - Method in class downey.ErrorStore
Add to the error store.

C

clearError() - Method in class downey.ErrorStore
Empty the error store.
copyFile(HttpServletResponse, String) - Static method in class downey.hw3.Hw3Utilities
Copy the contents of a file to the browser

D

downey - package downey
 
downey.hw2 - package downey.hw2
Interface Class for CGS4825 Hw2.
downey.hw3 - package downey.hw3
 

E

ErrorStore - class downey.ErrorStore.
This class provides a mechanism for saving error messages.
Instead of writing messages to System.out.println, a class can extend this class and use the setError and getError methods to record and retrireve error messages.
ErrorStore() - Constructor for class downey.ErrorStore
Creates a new instance of ErrorStore.
eraseDatabase() - Method in class downey.ReadOnlyDB
Erasing is disabled in this class.
eraseDatabase() - Method in class downey.SimpleDB
Delete all the elements in the database.

G

getChecked(String) - Method in class downey.PresetCheckedAndSelected
Retrieve a choice from the map: should be either a radio or checkbox element.
getChoice(String) - Method in class downey.PresetCheckedAndSelected
Retrieve a choice from the map.
getError() - Method in class downey.ErrorStore
Retrieve the error store.
getFileName() - Method in class downey.SimpleDB
Used in a tag lib.
getMessage(HttpServletRequest, String, String) - Method in interface downey.hw2.Hw2Interface
 
getSelected(String) - Method in class downey.PresetCheckedAndSelected
Retrieve a choice from the map: should be used in an option for a selection list element.

H

Hw2Interface - interface downey.hw2.Hw2Interface.
Interface for Hw2
Hw3Utilities - class downey.hw3.Hw3Utilities.
 
Hw3Utilities() - Constructor for class downey.hw3.Hw3Utilities
Creates a new instance of Hw3Utilities

I

init(String) - Method in class downey.SimpleDB
Reinitializes a DB.
init() - Method in class downey.SimpleDB
init with no parameters.
initChoice() - Method in class downey.PresetCheckedAndSelected
Reinitializes the map to empty.
isError() - Method in class downey.SimpleDB
Tests if there is an error
isOpen - Variable in class downey.SimpleDB
Flag for determing if DB is open

K

keyIterator() - Method in class downey.SimpleDB
Returns an Iterator of the keys in the DB

M

m_database - Variable in class downey.SimpleDB
Name of HashMap that contains DB
m_fileName - Variable in class downey.SimpleDB
The file name that corresponds to the DB
m_strError - Variable in class downey.ErrorStore
The string that holds the error store
makeArray(ArrayList) - Method in class downey.SimpleDB
This is a helper function for creating a String[] from an ArrayList.
makeList(String[]) - Method in class downey.SimpleDB
This is a helper function for creating an ArrayList from a String[].
mapSelected - Variable in class downey.PresetCheckedAndSelected
The implementation of the map

O

openDatabase() - Method in class downey.SimpleDB
 

P

PresetCheckedAndSelected - class downey.PresetCheckedAndSelected.
A class to simplify the presetting of radio groups, checkbox groups and selection lists
PresetCheckedAndSelected() - Constructor for class downey.PresetCheckedAndSelected
Creates a new instance of PresetCheckedAndSelected

R

ReadOnlyDB - class downey.ReadOnlyDB.
This class allows for read access to a simple database.
ReadOnlyDB() - Constructor for class downey.ReadOnlyDB
 
readRecord(String) - Method in class downey.SimpleDB
Read a record object from the database.

S

SimpleDB - class downey.SimpleDB.
This class allows for read and write access to a simple database.
SimpleDB(String) - Constructor for class downey.SimpleDB
Creates a new instance of SimpleDB
SimpleDB() - Constructor for class downey.SimpleDB
A default constructor for use with a tag lib.
saveDatabase() - Method in class downey.SimpleDB
 
setChecked(String) - Method in class downey.PresetCheckedAndSelected
Set a type of "checked" for this entry in the map.
setChecked(String[]) - Method in class downey.PresetCheckedAndSelected
Set a type of "checked" for an array of String keys.
setChoice(String, String) - Method in class downey.PresetCheckedAndSelected
Set a choice in the map: the type is either "checked" or "selected".
setChoice(String[], String) - Method in class downey.PresetCheckedAndSelected
Set a choice in the map: the type is either "checked" or "selected".
setError(String) - Method in class downey.ErrorStore
Set the error store.
setFileName(String) - Method in class downey.SimpleDB
Used in a tag lib.
setSelected(String) - Method in class downey.PresetCheckedAndSelected
Set a type of "selected" for this entry in the map.
setSelected(String[]) - Method in class downey.PresetCheckedAndSelected
Set a type of "selected" for an array of String keys.

U

updateRecord(String, Object) - Method in class downey.ReadOnlyDB
Update is disabled in this class.
updateRecord(String, Object) - Method in class downey.SimpleDB
This will either add or update the object associated with the given key.

V

valueIterator() - Method in class downey.SimpleDB
Returns an Iterator of the values in the DB

A C D E G H I K M O P R S U V