DBVIEW
org.dbview.runtime.cli.CliOptionsIOTargets Class Reference
Inheritance diagram for org.dbview.runtime.cli.CliOptionsIOTargets:
Collaboration diagram for org.dbview.runtime.cli.CliOptionsIOTargets:

List of all members.

Public Member Functions

String getInputTarget ()
String getOutputTarget ()
Hashtable< String, Boolean > options ()
String toString ()
String[] extractArgvForThisSet (String[] in_argv)
String[] shrink ()

Private Attributes

String __input_target = null
String __output_target = null

Detailed Description

This class contains the CLI options needed to proceed to an export. It defines options for an input and an output add-on.

Remarks:
This class is designed to be used with the library Args4j.
This class is not public.
Author:
Denis Beurive

Definition at line 1177 of file CliParser.java.


Member Function Documentation

String [] org.dbview.utils.args4j.OptionContainer.extractArgvForThisSet ( String[]  in_argv) [inherited]

This method extracts the command line arguments that apply to these options, from a given list of arguments.

Remarks:
This method is used to implement a 2 stages command line parsing. Sometimes, it is necessary to extract a part of information from the command line in order to parse the all arguments.
Parameters:
in_argvList of arguments.
Returns:
The method returns the list of command line arguments that applies to this options' container.

Definition at line 106 of file OptionContainer.java.

Referenced by org.dbview.runtime.cli.CliParser.__tryExport().

String org.dbview.runtime.cli.CliOptionsIOTargets.getInputTarget ( )

Returns the name of the input add-on.

Returns:
Returns the name of the input add-on.

Definition at line 1191 of file CliParser.java.

String org.dbview.runtime.cli.CliOptionsIOTargets.getOutputTarget ( )

Returns the name of the output add-on.

Returns:
Returns the name of the output add-on.

Definition at line 1197 of file CliParser.java.

Hashtable<String, Boolean> org.dbview.utils.args4j.OptionContainer.options ( ) [inherited]

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.

Returns:
The method returns a hash.
  • Key: The command option string.
  • Value: A boolean value 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 ( ) [inherited]

This method returns the list of command line arguments that remains after the command line parsing.

Returns:
The 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 ( ) [inherited]

This method is mainly used for debugging.

Returns:
The method returns a string that represents the container's state.

Definition at line 83 of file OptionContainer.java.


Member Data Documentation

Name of the input add-on.

Definition at line 1181 of file CliParser.java.

Referenced by org.dbview.runtime.cli.CliOptionsIOTargets.getInputTarget().

Name of the output add-on.

Definition at line 1185 of file CliParser.java.

Referenced by org.dbview.runtime.cli.CliOptionsIOTargets.getOutputTarget().


The documentation for this class was generated from the following file: