DBVIEW
|
Public Member Functions | |
Hashtable< String, Boolean > | options () |
String | toString () |
String[] | extractArgvForThisSet (String[] in_argv) |
String[] | shrink () |
Private Attributes | |
ArrayList< String > | __shrinked_argv = new ArrayList<String>() |
This class is a parent class for all command line options' containers.
Definition at line 37 of file OptionContainer.java.
String [] org.dbview.utils.args4j.OptionContainer.extractArgvForThisSet | ( | String[] | in_argv | ) |
This method extracts the command line arguments that apply to these options, from a given list of arguments.
in_argv | List of arguments. |
Definition at line 106 of file OptionContainer.java.
Referenced by org.dbview.runtime.cli.CliParser.__tryExport().
Hashtable<String, Boolean> org.dbview.utils.args4j.OptionContainer.options | ( | ) |
This method returns the list of command line option strings ("-host", "-user", ...). For each command line option string, the list contains a flag that indicates whether the option takes an argument or not.
Definition at line 54 of file OptionContainer.java.
Referenced by org.dbview.utils.args4j.OptionContainer.extractArgvForThisSet(), and org.dbview.utils.args4j.OptionContainer.toString().
String [] org.dbview.utils.args4j.OptionContainer.shrink | ( | ) |
This method returns the list of command line arguments that remains after the command line parsing.
Definition at line 148 of file OptionContainer.java.
String org.dbview.utils.args4j.OptionContainer.toString | ( | ) |
This method is mainly used for debugging.
Definition at line 83 of file OptionContainer.java.
ArrayList<String> org.dbview.utils.args4j.OptionContainer.__shrinked_argv = new ArrayList<String>() [private] |
Each time an option is parsed, then the associated command line arguments are removed from the list of command line argument. This attribute contains the remaining arguments in the command line.
Definition at line 43 of file OptionContainer.java.
Referenced by org.dbview.utils.args4j.OptionContainer.extractArgvForThisSet(), and org.dbview.utils.args4j.OptionContainer.shrink().