Package com.openstego.desktop.util.cmd
Class CmdLineOptions
- java.lang.Object
-
- com.openstego.desktop.util.cmd.CmdLineOptions
-
public class CmdLineOptions extends java.lang.Object
Class to store the list of command line options- See Also:
CmdLineParser
-
-
Constructor Summary
Constructors Constructor Description CmdLineOptions()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CmdLineOption option)
Method to add the command-line optionvoid
add(java.lang.String name, java.lang.String altName, int type, boolean takesArg)
Overloaded method to add the command-line optionjava.util.List<CmdLineOption>
getList()
Method to get the list of the given optionsCmdLineOption
getOption(int index)
Method to get the standard option data by indexCmdLineOption
getOption(java.lang.String name)
Method to get the standard option data by namejava.lang.String
getOptionValue(java.lang.String name)
Method to get the value of the given optionint
size()
Method to get the number of the given options
-
-
-
Method Detail
-
add
public void add(CmdLineOption option)
Method to add the command-line option- Parameters:
option
- Command-line option
-
add
public void add(java.lang.String name, java.lang.String altName, int type, boolean takesArg)
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
public CmdLineOption getOption(java.lang.String name)
Method to get the standard option data by name- Parameters:
name
- Name of the option- Returns:
- Command-line option
-
getOption
public CmdLineOption getOption(int index)
Method to get the standard option data by index- Parameters:
index
- Index of the option- Returns:
- Command-line option
-
getOptionValue
public java.lang.String getOptionValue(java.lang.String name)
Method to get the value of the given option- Parameters:
name
- Name of the option- Returns:
- Value of the command-line option
-
getList
public java.util.List<CmdLineOption> 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
-
-