Package gov.nih.mipav.view
Enum Argument.StaticArgument
- java.lang.Object
-
- java.lang.Enum<Argument.StaticArgument>
-
- gov.nih.mipav.view.Argument.StaticArgument
-
- All Implemented Interfaces:
Argument
,java.io.Serializable
,java.lang.Comparable<Argument.StaticArgument>
- Enclosing interface:
- Argument
public static enum Argument.StaticArgument extends java.lang.Enum<Argument.StaticArgument> implements Argument
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gov.nih.mipav.view.Argument
Argument.InstanceArgument, Argument.StaticArgument
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Help
HomeDir
InputDir
OutputDir
PluginDir
PreferencesDir
PreferencesName
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]
altCommand
Alternate commands for a given actionprivate java.lang.String
command
The case-independent form of the commandprivate java.lang.String
help
Help for using a command.
-
Constructor Summary
Constructors Modifier Constructor Description private
StaticArgument(java.lang.String s, java.lang.String help, java.lang.String... altCommand)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
generateCmdUsageInfo()
Prints usage info for specific commandjava.lang.String
getArgument()
Returns command in lower-case form.static Argument.StaticArgument
getArgument(java.lang.String str)
static Argument.StaticArgument
getArgument(java.lang.String str, boolean quiet)
java.lang.String
getHelp()
Returns help for using command.java.lang.String
toString()
static Argument.StaticArgument
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Argument.StaticArgument[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HomeDir
public static final Argument.StaticArgument HomeDir
-
PreferencesDir
public static final Argument.StaticArgument PreferencesDir
-
PreferencesName
public static final Argument.StaticArgument PreferencesName
-
InputDir
public static final Argument.StaticArgument InputDir
-
OutputDir
public static final Argument.StaticArgument OutputDir
-
PluginDir
public static final Argument.StaticArgument PluginDir
-
Help
public static final Argument.StaticArgument Help
-
-
Method Detail
-
values
public static Argument.StaticArgument[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Argument.StaticArgument c : Argument.StaticArgument.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Argument.StaticArgument valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getHelp
public java.lang.String getHelp()
Description copied from interface:Argument
Returns help for using command.
-
getArgument
public java.lang.String getArgument()
Description copied from interface:Argument
Returns command in lower-case form.- Specified by:
getArgument
in interfaceArgument
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Argument.StaticArgument>
-
generateCmdUsageInfo
public java.lang.String generateCmdUsageInfo()
Description copied from interface:Argument
Prints usage info for specific command- Specified by:
generateCmdUsageInfo
in interfaceArgument
-
getArgument
public static Argument.StaticArgument getArgument(java.lang.String str)
-
getArgument
public static Argument.StaticArgument getArgument(java.lang.String str, boolean quiet)
-
-