Enum Flag
- java.lang.Object
-
- java.lang.Enum<Flag>
-
- gov.nasa.pds.imaging.generate.cli.options.Flag
-
- All Implemented Interfaces:
Serializable
,Comparable<Flag>
public enum Flag extends Enum<Flag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASEPATH
Flag to output the logging to a file.DEBUG
Flag to display all debug output.HELP
Flag to display the help.INCLUDES
OUTPUT
Flag to specify the output file namePDS3
Flag to specify the input PDS3 labelTEMPLATE
Flag to specify the path of a velocity template.TEXTOUT
Flag to specify text file output, versus the default XML outputVERSION
Flag to display the version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowsMultipleArgs()
Find out if the flag can handle multiple arguments.String
getArgName()
Get the argument name of the flag.Object
getArgType()
Get the argument type of the flag.String
getDescription()
Get the flag description.String
getLongName()
Get the long name of the flag.static org.apache.commons.cli.Options
getOptions()
Get the command-line options.String
getShortName()
Get the short name of the flag.static Flag
valueOf(String name)
Returns the enum constant of this type with the specified name.static Flag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HELP
public static final Flag HELP
Flag to display the help.
-
BASEPATH
public static final Flag BASEPATH
Flag to output the logging to a file.
-
DEBUG
public static final Flag DEBUG
Flag to display all debug output.
-
PDS3
public static final Flag PDS3
Flag to specify the input PDS3 label
-
TEMPLATE
public static final Flag TEMPLATE
Flag to specify the path of a velocity template.
-
OUTPUT
public static final Flag OUTPUT
Flag to specify the output file name
-
TEXTOUT
public static final Flag TEXTOUT
Flag to specify text file output, versus the default XML output
-
INCLUDES
public static final Flag INCLUDES
-
VERSION
public static final Flag VERSION
Flag to display the version.
-
-
Method Detail
-
values
public static Flag[] 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 (Flag c : Flag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Flag valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getOptions
public static org.apache.commons.cli.Options getOptions()
Get the command-line options.- Returns:
- A class representation of the command-line options.
-
allowsMultipleArgs
public boolean allowsMultipleArgs()
Find out if the flag can handle multiple arguments.- Returns:
- 'true' if yes.
-
getArgName
public String getArgName()
Get the argument name of the flag.- Returns:
- The argument name.
-
getArgType
public Object getArgType()
Get the argument type of the flag.- Returns:
- The argument type.
-
getDescription
public String getDescription()
Get the flag description.- Returns:
- The description.
-
getLongName
public String getLongName()
Get the long name of the flag.- Returns:
- The long name.
-
getShortName
public String getShortName()
Get the short name of the flag.- Returns:
- The short name.
-
-