DBVIEW
|
Public Member Functions | |
abstract OptionContainer | getOptionsContainer () |
abstract ArrayList< CliParameter > | getOptions () |
Element | getConf (String[] in_vargs, Boolean in_strict, Boolean in_set_default) throws CliException |
Protected Member Functions | |
abstract ArrayList< Element > | _getConf_ (String[] in_vargs, Boolean in_strict, Boolean in_set_default) throws CliException |
This class is a base class for all command line interface (CLI) adaptors. A command line interface adaptor parses the command line and returns an XML document. The returned XML document is provided to all adaptors that need configuration Please note that the returned XML representation is independent from the user interface (CLI, GUI...) used to get the configuration.
Definition at line 39 of file AbstractCli.java.
abstract ArrayList<Element> org.dbview.adapter.AbstractCli._getConf_ | ( | String[] | in_vargs, |
Boolean | in_strict, | ||
Boolean | in_set_default | ||
) | throws CliException [protected, pure virtual] |
This method returns the information extracted from the command line.
in_vargs | The command line arguments. |
in_strict | This parameter indicates whether the CLI parser should check the presence of mandatory options, or not.
|
in_set_default | This parameter indicates whether the method should set default values or not.
|
Implemented in org.dbview.addons.output.table.dotFull.Cli, org.dbview.addons.output.table.dotLight.Cli, org.dbview.addons.output.table.dotMedium.Cli, and org.dbview.addons.input.mysql.Cli.
Referenced by org.dbview.adapter.AbstractCli.getConf().
Element org.dbview.adapter.AbstractCli.getConf | ( | String[] | in_vargs, |
Boolean | in_strict, | ||
Boolean | in_set_default | ||
) | throws CliException |
This method returns an XML document that represents the command line.
in_vargs | The command line arguments. |
in_strict | This parameter indicates whether the CLI parser should check the presence of mandatory options, or not.
|
in_set_default | This parameter indicates whether the method should set default values or not.
|
<data><login>...</login><password>...</password></data>
Definition at line 82 of file AbstractCli.java.
abstract ArrayList<CliParameter> org.dbview.adapter.AbstractCli.getOptions | ( | ) | [pure virtual] |
This method returns the description of the command line expected by this adaptor.
Implemented in org.dbview.addons.input.mysql.Cli, org.dbview.addons.output.table.dotLight.Cli, org.dbview.addons.output.table.dotFull.Cli, and org.dbview.addons.output.table.dotMedium.Cli.
Referenced by org.dbview.runtime.actions.Actions.helpInputAddOn(), and org.dbview.runtime.actions.Actions.helpOutputAddOn().
abstract OptionContainer org.dbview.adapter.AbstractCli.getOptionsContainer | ( | ) | [pure virtual] |
Return the command line options container.
Implemented in org.dbview.addons.output.table.dotFull.Cli, org.dbview.addons.output.table.dotLight.Cli, org.dbview.addons.output.table.dotMedium.Cli, and org.dbview.addons.input.mysql.Cli.