Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ALPHABET - Static variable in class SubstitutionMessage
- assertContains(String, String[]) - Method in class ZybooksTester
- assertEquals(Object, Object) - Method in class ZybooksTester
- assertEquals(Object, Object, String) - Method in class ZybooksTester
- assertEquals(Object, Object, String, boolean) - Method in class ZybooksTester
- assertNull(Object) - Method in class ZybooksTester
- assertNull(Object, String) - Method in class ZybooksTester
B
- baos - Variable in class ZybooksTester
- body - Variable in class OpenMessage
C
- CaesarMessage - Class in Unnamed Package
- CaesarMessage(String, String, String, String, Key) - Constructor for class CaesarMessage
- caesarMessageDecryptionTest1(PrintWriter) - Static method in class Tests
- caesarMessageDecryptionTest2(PrintWriter) - Static method in class Tests
- caesarMessageEncryptionTest1(PrintWriter) - Static method in class Tests
- caesarMessageEncryptionTest2(PrintWriter) - Static method in class Tests
- composeHelper() - Method in class MessageApp
-
This method will be modified from Lab 12.
- controlOutput() - Method in class ZybooksTester
D
- decrypt(String, Key) - Method in class CaesarMessage
-
Decrypts the String passed in.
- decrypt(String, Key) - Method in interface EncryptedMessage
- decrypt(String, Key) - Method in class SubstitutionMessage
-
Decrypts the String passed in.
E
- encrypt(String, Key) - Method in class CaesarMessage
-
Encrypts the String passed into it using a Caesar Cipher.
- encrypt(String, Key) - Method in interface EncryptedMessage
- encrypt(String, Key) - Method in class SubstitutionMessage
-
Encrypts the String passed into it using a Substitution Cipher.
- EncryptedMessage - Interface in Unnamed Package
F
- feedbackWriter(String, String, String) - Method in class ZybooksTester
- from - Variable in class OpenMessage
G
- getBody() - Method in interface Message
- getBody() - Method in class OpenMessage
-
Gets the body of the message
- getFrom() - Method in interface Message
- getFrom() - Method in class OpenMessage
-
Gets the "from" portion of the message
- getInput(String) - Method in class MessageView
-
Prints a message to console then returns next line of input from user using the Scanner.
- getKey() - Method in class Key
-
Gets and returns the Key's key, which is a number for Caesar Cipher or an alphabet for a substitution cipher
- getName() - Method in class Key
-
Gets and returns the Key's name, which represents the name of the user associated with it.
- getSubject() - Method in interface Message
- getSubject() - Method in class OpenMessage
-
Gets the subject of the message
- getSystemOut() - Method in class ZybooksTester
- getTo() - Method in interface Message
- getTo() - Method in class OpenMessage
-
Gets the "to" portion of the message
- getType() - Method in class Key
-
Gets and returns the Key's type, C for Caesar Cipher or S for substitution cipher.
- go() - Method in class MessageApp
-
Runs the program, keep going until user input is "x".
K
- key - Variable in class Key
- Key - Class in Unnamed Package
- Key(String, String, String) - Constructor for class Key
-
Constructor for Key.
- keyByName(String) - Method in class MessageApp
-
A helper method that searches through the keys list to see if a Key exists for a particular user.
- keys - Variable in class MessageApp
L
- loadFile(String) - Static method in class MessageLoader
-
This method reads through a file, and builds a number of Message objects based on the contents of that file.
M
- main(String[]) - Static method in class CaesarMessage
- main(String[]) - Static method in class MessageMain
- main(String[]) - Static method in class Tests
- Message - Interface in Unnamed Package
-
Provided interface containing methods you *must* implement in OpenMessage.java
- MessageApp - Class in Unnamed Package
- MessageApp(ArrayList<OpenMessage>) - Constructor for class MessageApp
-
Initialize the ArrayList of OpenMessages
- messageKey - Variable in class CaesarMessage
-
Note that all you need to declare here is messageKey, as to, from, subject, and body are handled in OpenMessage, which CaesarMessage inherits fom.
- messageKey - Variable in class SubstitutionMessage
-
Note that all you need to declare here is messageKey, as to, from, subject, and body are handled in OpenMessage, which SubstitutionMessage inherits fom.
- MessageLoader - Class in Unnamed Package
-
This utility class contains methods that will read in a file as it is provided, and load the data into an ArrayList with
OpenMessageobjects inside of it. - MessageLoader() - Constructor for class MessageLoader
- MessageMain - Class in Unnamed Package
- MessageMain() - Constructor for class MessageMain
- messages - Variable in class MessageApp
- MessageView - Class in Unnamed Package
- MessageView() - Constructor for class MessageView
N
O
- OpenMessage - Class in Unnamed Package
- OpenMessage(String, String, String, String) - Constructor for class OpenMessage
P
- parseLine(String) - Static method in class MessageLoader
-
Takes in a line, in which one must grab the substring *after* the ":".
- printMenu() - Method in class MessageView
-
Prints the menu for user.
- processCommand(String) - Method in class MessageApp
-
Checks the command (options from the menu) and calls appropriate methods for its functionality.
R
- readFileToString(String) - Static method in class ZybooksTester
S
- scanner - Variable in class MessageView
- search(String, String) - Method in interface Message
- search(String, String) - Method in class OpenMessage
-
Searches for a particular term in a part of the message.
- searchFrom(String) - Method in interface Message
- searchFrom(String) - Method in class OpenMessage
-
Searches for a message by "from" portion of the message.
- searchHelper() - Method in class MessageApp
-
Asks user for what type of search and what they are searching for, then returns the message if found.
- searchSubject(String) - Method in interface Message
- searchSubject(String) - Method in class OpenMessage
-
Searches for a message by subject.
- searchTo(String) - Method in interface Message
- searchTo(String) - Method in class OpenMessage
-
Searches for a message by "to" portion of the message.
- setSystemIn(String) - Method in class ZybooksTester
- subject - Variable in class OpenMessage
- SubstitutionMessage - Class in Unnamed Package
- SubstitutionMessage(String, String, String, String, Key) - Constructor for class SubstitutionMessage
- substitutionMessageDecryptTest1(PrintWriter) - Static method in class Tests
- substitutionMessageDecryptTest2(PrintWriter) - Static method in class Tests
- substitutionMessageEncryptTest1(PrintWriter) - Static method in class Tests
- substitutionMessageEncryptTest2(PrintWriter) - Static method in class Tests
T
- testFeedback - Variable in class ZybooksTester
- Tests - Class in Unnamed Package
- Tests() - Constructor for class Tests
- to - Variable in class OpenMessage
- toString() - Method in class OpenMessage
-
Creates and returns a String that represents our OpenMessage object.
- toStringTest(PrintWriter) - Static method in class Tests
- type - Variable in class Key
V
- view - Variable in class MessageApp
Z
- ZybooksTester - Class in Unnamed Package
-
This class wraps various junit tests.
- ZybooksTester(PrintWriter) - Constructor for class ZybooksTester
All Classes and Interfaces|All Packages|Constant Field Values