Package com.openstego.desktop.util.cmd
Class CmdLineOptions
java.lang.Object
com.openstego.desktop.util.cmd.CmdLineOptions
Class to store the list of command line options
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(CmdLineOption option) Method to add the command-line optionvoid
Overloaded method to add the command-line optiongetList()
Method to get the list of the given optionsgetOption
(int index) Method to get the standard option data by indexMethod to get the standard option data by namegetOptionValue
(String name) Method to get the value of the given optionint
size()
Method to get the number of the given options
-
Constructor Details
-
CmdLineOptions
public CmdLineOptions()Default constructor
-
-
Method Details
-
add
Method to add the command-line option- Parameters:
option
- Command-line option
-
add
Overloaded method to add the command-line option- Parameters:
name
- Name of the optionaltName
- Alternate name of the optiontype
- Type of the optiontakesArg
- Flag to indicate whether the option takes argument or not
-
getOption
Method to get the standard option data by name- Parameters:
name
- Name of the option- Returns:
- Command-line option
-
getOption
Method to get the standard option data by index- Parameters:
index
- Index of the option- Returns:
- Command-line option
-
getOptionValue
Method to get the value of the given option- Parameters:
name
- Name of the option- Returns:
- Value of the command-line option
-
getList
Method to get the list of the given options- Returns:
- List of options
-
size
public int size()Method to get the number of the given options- Returns:
- Number of options
-