cli
Class CLI

java.lang.Object
  extended by cli.CLI
All Implemented Interfaces:
MenuConstants, Viewable

public class CLI
extends java.lang.Object
implements MenuConstants, Viewable

Methods to implement a command line interface to the text converter API


Field Summary
private  Bol bol
           
private  java.lang.String filename
           
private static int selMenuBar
           
private static int selSubMenu
           
private  int type
           
 
Fields inherited from interface cli.MenuConstants
ENTER_DATABASE, ENTER_DBMS_TYPE, ENTER_FILE_PATH, ENTER_HOST, ENTER_PASSWORD, ENTER_TABLE, ENTER_TEXTFILE_TYPE, ENTER_USER_NAME, HELPFUL_MESSAGE, IOTypes, myMenuBar, OUTPUT_ERROR, subMenu1, subMenu2, subMenu3, subMenus, SUCCESS_MESSAGE
 
Constructor Summary
CLI()
          Constructor.
 
Method Summary
private  void CLI_SubMenu(java.lang.String[] subMenu)
          Displays sub menu and gets selections.
private  void getIOFileInfo()
          Prompts for and reads the required File path and Filetype from keyboard.
 void init()
          This is the only implementation method required for this interface.
private  void outputDataToScreen()
          Dumps the current system data structure to the screen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selMenuBar

private static int selMenuBar

selSubMenu

private static int selSubMenu

bol

private Bol bol

filename

private java.lang.String filename

type

private int type
Constructor Detail

CLI

public CLI()
Constructor.

Method Detail

CLI_SubMenu

private void CLI_SubMenu(java.lang.String[] subMenu)
Displays sub menu and gets selections.

Parameters:
subMenu - - list of menu items.

outputDataToScreen

private void outputDataToScreen()
Dumps the current system data structure to the screen


getIOFileInfo

private void getIOFileInfo()
Prompts for and reads the required File path and Filetype from keyboard. Stored in 'type' variable (integer)


init

public void init()
Description copied from interface: Viewable
This is the only implementation method required for this interface.

Specified by:
init in interface Viewable