|
LexAccess Java 2008 Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOption
gov.nih.nlm.nls.lexAccess.Api.LexAccessCmdApi
public class LexAccessCmdApi
This class provides a LexCheck API for setup options by a command.
History:
| Field Summary | |
|---|---|
protected static java.io.BufferedReader |
inReader_
|
protected static java.io.BufferedWriter |
outWriter_
|
protected java.util.Vector<java.lang.String> |
quitStrList_
|
protected boolean |
runFlag_
|
| Fields inherited from class gov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOption |
|---|
systemOption_ |
| Constructor Summary | |
|---|---|
LexAccessCmdApi()
Creates an LexAccessCmdApi object and initiate related data (default). |
|
LexAccessCmdApi(java.util.Hashtable<java.lang.String,java.lang.String> properties)
Creates an LexAccessCmdApi object and initiate related data with properties to be overwritten in configuration. |
|
LexAccessCmdApi(java.lang.String optionStr)
Creates an LexAccessApi object, init related data by a command string. |
|
LexAccessCmdApi(java.lang.String optionStr,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
Creates an LexAccessApi object, init related data by a command string with properties to be overwritten in configuration. |
|
LexAccessCmdApi(java.lang.String optionStr,
java.lang.String configFile)
Creates an LexAccessApi object, init related data by a command string and the path of configuration file. |
|
LexAccessCmdApi(java.lang.String optionStr,
java.lang.String configFile,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
Creates an LexAccessApi object, init related data by a command string and the path of configuration file with properties to be overwritten in configuration. |
|
| Method Summary | |
|---|---|
void |
CleanUp()
Close LexAccess database connection and persistent tries. |
protected void |
DefineFlag()
Define the LexAccess system option by defining a string. |
protected void |
ExecuteCommand(gov.nih.nlm.nls.lvg.CmdLineSyntax.OptionItem optionItem,
gov.nih.nlm.nls.lvg.CmdLineSyntax.Option systemOption)
Execute lexAccess command for a specified option item in a given system option. |
Configuration |
GetConfiguration()
A method to get the configuration object |
java.sql.Connection |
GetConnection()
Get the Db connection |
protected void |
GetPrompt()
Get the Lvg interface prompt and print it out to system output. |
boolean |
IsLegalOption()
Check if the input command is legal. |
static void |
PrintLexAccessHelp()
Print out the LexAccess help menu. |
boolean |
Process()
Performs retrieving data by processing the input line (term). |
java.lang.String |
ProcessToString()
Performs retrieving data by processing the input line (term). |
void |
SetOption(java.lang.String optionStr)
Set the LexAccess command for retrieving data. |
void |
SetPromptStr(java.lang.String promptStr)
Set the prompt string. |
void |
SetQuitStrList(java.util.Vector<java.lang.String> quitStrList)
Set a list for quiting the program while using LexAccess prompt interface. |
| Methods inherited from class gov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOption |
|---|
CheckOption, CheckSyntax, ExecuteCommands, GetOption, ToBoolean, ToFloatArray, ToIntArray, ToStringArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector<java.lang.String> quitStrList_
protected static java.io.BufferedReader inReader_
protected static java.io.BufferedWriter outWriter_
protected boolean runFlag_
| Constructor Detail |
|---|
public LexAccessCmdApi()
CleanUp( ) method must be called to close Db connection after using this object
public LexAccessCmdApi(java.lang.String optionStr)
CleanUp( ) method must be called to close Db connection after using this object
optionStr - the initial lvg option string
public LexAccessCmdApi(java.lang.String optionStr,
java.lang.String configFile)
CleanUp( ) method must be called to close Db connection after using this object
optionStr - the initial lvg option stringconfigFile - the absolute path of the configuration filepublic LexAccessCmdApi(java.util.Hashtable<java.lang.String,java.lang.String> properties)
CleanUp( ) method must be called to close Db connection after using this object
properties - properties to be overwrite in configuration
public LexAccessCmdApi(java.lang.String optionStr,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
CleanUp( ) method must be called to close Db connection after using this object
optionStr - the initial lvg option stringproperties - properties to be overwrite in configuration
public LexAccessCmdApi(java.lang.String optionStr,
java.lang.String configFile,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
CleanUp( ) method must be called to close Db connection after using this object
optionStr - the initial lvg option stringconfigFile - the absolute path of the configuration fileproperties - properties to be overwrite in configuration| Method Detail |
|---|
public void SetPromptStr(java.lang.String promptStr)
promptStr - the customerized prompt stringpublic void SetQuitStrList(java.util.Vector<java.lang.String> quitStrList)
quitStrList - Vectorpublic boolean IsLegalOption()
public void SetOption(java.lang.String optionStr)
optionStr - LexAccess command for flowspublic Configuration GetConfiguration()
public java.sql.Connection GetConnection()
public void CleanUp()
public java.lang.String ProcessToString()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
public boolean Process()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOExceptionpublic static void PrintLexAccessHelp()
protected void ExecuteCommand(gov.nih.nlm.nls.lvg.CmdLineSyntax.OptionItem optionItem,
gov.nih.nlm.nls.lvg.CmdLineSyntax.Option systemOption)
ExecuteCommand in class gov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOptionoptionItem - the option to be executedsystemOption - the system option that the option item will be
run onprotected void DefineFlag()
DefineFlag in class gov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOption
protected void GetPrompt()
throws java.io.IOException
java.io.IOException
|
LexAccess Java 2008 Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||