Package com.openstego.desktop.util.cmd
Class CmdLineOption
java.lang.Object
com.openstego.desktop.util.cmd.CmdLineOption
Stores the master information about a command line option
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCommand-line option type: COMMANDstatic final intCommand-line option type: OPTION -
Constructor Summary
ConstructorsConstructorDescriptionCmdLineOption(String name, String altName, int type, boolean takesArgVal) Default constructor -
Method Summary
-
Field Details
-
TYPE_COMMAND
public static final int TYPE_COMMANDCommand-line option type: COMMAND- See Also:
-
TYPE_OPTION
public static final int TYPE_OPTIONCommand-line option type: OPTION- See Also:
-
-
Constructor Details
-
CmdLineOption
public CmdLineOption(String name, String altName, int type, boolean takesArgVal) throws IllegalArgumentException Default constructor- Parameters:
name- Name of the optionaltName- Altername name of the optiontype- Type of the optiontakesArgVal- Flag to indicate whether the option takes argument or not- Throws:
IllegalArgumentException- If option type is TYPE_COMMAND and takesArgVal is specified as true
-
-
Method Details
-
setValue
Set method for value- Parameters:
value- Value
-
getName
Get method for name- Returns:
- name
-
getAltName
Get method for altName- Returns:
- altN
-
getType
public int getType()Get method for type- Returns:
- type
-
takesArg
public boolean takesArg()Get method for takesArgVal- Returns:
- takesArgVal
-
getValue
Get method for value- Returns:
- value
-