public enum ModificationsCLIParams extends Enum<ModificationsCLIParams>
Enum Constant and Description |
---|
COMPOSITION_ADDED |
COMPOSITION_REMOVED |
IN |
LIST |
NAME |
OUT |
PATTERN |
PATTERN_INDEX |
RM |
SHORT_NAME |
TYPE |
Modifier and Type | Field and Description |
---|---|
String |
description
Explanation for the CLI parameter.
|
boolean |
hasArgument
Boolean indicating whether this command line option needs an argument.
|
String |
id
Short Id for the CLI parameter.
|
boolean |
mandatory
Boolean indicating whether the parameter is mandatory.
|
Modifier and Type | Method and Description |
---|---|
static void |
createOptionsCLI(org.apache.commons.cli.Options aOptions)
Creates the options for the command line interface based on the possible
values.
|
static String |
getOptionsAsString()
Returns the options as a string.
|
static ModificationsCLIParams |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModificationsCLIParams[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModificationsCLIParams IN
public static final ModificationsCLIParams LIST
public static final ModificationsCLIParams OUT
public static final ModificationsCLIParams RM
public static final ModificationsCLIParams TYPE
public static final ModificationsCLIParams NAME
public static final ModificationsCLIParams SHORT_NAME
public static final ModificationsCLIParams COMPOSITION_ADDED
public static final ModificationsCLIParams COMPOSITION_REMOVED
public static final ModificationsCLIParams PATTERN
public static final ModificationsCLIParams PATTERN_INDEX
public final String id
public final String description
public final boolean mandatory
public final boolean hasArgument
public static ModificationsCLIParams[] values()
for (ModificationsCLIParams c : ModificationsCLIParams.values()) System.out.println(c);
public static ModificationsCLIParams valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static void createOptionsCLI(org.apache.commons.cli.Options aOptions)
aOptions
- the options object where the options will be addedpublic static String getOptionsAsString()
Copyright © 2018. All rights reserved.