A B C D E F G H I M N O P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractMainSupport<A,R> - Class in cdc.util.cli
-
Utility that can be used to create main programs.
- AbstractMainSupport(Class<?>, Logger) - Constructor for class cdc.util.cli.AbstractMainSupport
- AbstractMainSupport.ExceptionThrowing - Enum in cdc.util.cli
- AbstractMainSupport.Maskable<E extends Enum<E>> - Interface in cdc.util.cli
- AbstractMainSupport.Result - Enum in cdc.util.cli
- AbstractMainSupport.ValueChecker<T> - Interface in cdc.util.cli
-
Interface used to check the validity of an option value.
- add(E) - Method in class cdc.util.cli.FeatureMask
- addAll(FeatureMask<E>) - Method in class cdc.util.cli.FeatureMask
- addAll(E...) - Method in class cdc.util.cli.FeatureMask
- addAll(Collection<E>) - Method in class cdc.util.cli.FeatureMask
- addArgsFileOption(Options) - Method in class cdc.util.cli.AbstractMainSupport
-
Returns
trueifAbstractMainSupport.ARGS_FILEoption must be added. - addGroupedNoArgOptions(Options, Class<E>, boolean) - Static method in class cdc.util.cli.AbstractMainSupport
- addNoArgOptions(Options, Class<E>) - Static method in class cdc.util.cli.AbstractMainSupport
- addSpecificOptions(Options) - Method in class cdc.util.cli.AbstractMainSupport
-
Creates specific options and add them to an options collection.
- addStandardOptions(Options) - Method in class cdc.util.cli.AbstractMainSupport
- analyze(CommandLine) - Method in class cdc.util.cli.AbstractMainSupport
-
Analyzes the command line.
- ARGS_FILE - Static variable in class cdc.util.cli.AbstractMainSupport
B
- buildOptions() - Method in class cdc.util.cli.AbstractMainSupport
-
Creates options, add standard and specific options and returns them.
C
- cdc.util.cli - package cdc.util.cli
- CHARSET - Static variable in class cdc.util.cli.AbstractMainSupport
- check(CommandLine, String, T) - Method in interface cdc.util.cli.AbstractMainSupport.ValueChecker
-
Checks the validity of a value and returns it or throws an exception.
- checkAtMostOne(Logger, FailureReaction, E...) - Method in class cdc.util.cli.FeatureMask
-
Check that at most one feature is enabled in a group of features.
- checkExactlyOne(Logger, FailureReaction, E...) - Method in class cdc.util.cli.FeatureMask
-
Check that exactly one feature is enabled in a group of features.
- COMMAND_LINE_AND_EXECUTION - cdc.util.cli.AbstractMainSupport.ExceptionThrowing
- COMMAND_LINE_ERROR - cdc.util.cli.AbstractMainSupport.Result
- contains(E) - Method in class cdc.util.cli.FeatureMask
- createGroup(Options, boolean, E...) - Static method in class cdc.util.cli.AbstractMainSupport
- createGroup(Options, E...) - Static method in class cdc.util.cli.AbstractMainSupport
D
- DEFAULT_PARTS_SEPARATOR - Static variable in class cdc.util.cli.AbstractMainSupport
- DRIVER - Static variable in class cdc.util.cli.AbstractMainSupport
E
- execute(A) - Method in class cdc.util.cli.AbstractMainSupport
-
Executes the main program.
- EXECUTION - cdc.util.cli.AbstractMainSupport.ExceptionThrowing
- EXECUTION_ERROR - cdc.util.cli.AbstractMainSupport.Result
F
- FeatureMask<E extends Enum<E>> - Class in cdc.util.cli
-
Utility to handle features.
- FeatureMask() - Constructor for class cdc.util.cli.FeatureMask
- fillValues(CommandLine, String, Collection<String>) - Static method in class cdc.util.cli.AbstractMainSupport
-
Adds the values of an option to a String collection.
- fillValues(CommandLine, String, Collection<T>, Function<String, T>) - Static method in class cdc.util.cli.AbstractMainSupport
-
Adds option values to a collection, after converting them.
- fillValues(CommandLine, String, Collection<T>, Function<String, T>, AbstractMainSupport.ValueChecker<? super T>) - Static method in class cdc.util.cli.AbstractMainSupport
-
Adds option values to a collection, after converting and checking them.
G
- getDescription() - Method in interface cdc.util.cli.OptionEnum
- getExceptionThrowing() - Method in class cdc.util.cli.AbstractMainSupport
- getHelpFooter() - Method in class cdc.util.cli.AbstractMainSupport
-
Returns the help footer.
- getHelpHeader() - Method in class cdc.util.cli.AbstractMainSupport
-
Returns the help header.
- getLogger() - Method in class cdc.util.cli.AbstractMainSupport
- getName() - Method in interface cdc.util.cli.OptionEnum
- getNumberOfParts(String, String) - Static method in class cdc.util.cli.AbstractMainSupport
- getOptionsAsOptional() - Method in class cdc.util.cli.AbstractMainSupport
- getPart(String, String, int) - Static method in class cdc.util.cli.AbstractMainSupport
- getPart(String, String, int, String) - Static method in class cdc.util.cli.AbstractMainSupport
- getReferencePath() - Method in class cdc.util.cli.AbstractMainSupport
-
Returns the reference directory as a
Path. - getResult() - Method in class cdc.util.cli.AbstractMainSupport
- getShortName() - Method in interface cdc.util.cli.OptionEnum
- getValue(CommandLine, String, T, Function<String, T>) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns the conversion of an option value to a type, or a default value.
- getValue(CommandLine, String, T, Function<String, T>, AbstractMainSupport.ValueChecker<? super T>) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns the checked conversion of an option value to a type, or a checked default value.
- getValueAsByte(CommandLine, String, byte) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a byte.
- getValueAsByte(CommandLine, String, Byte) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsChar(CommandLine, String, char) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a char.
- getValueAsChar(CommandLine, String, Character) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsCharset(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsCharset(CommandLine, String, Charset) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a Charset.
- getValueAsDirectory(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsDirectory(CommandLine, String, File) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsDouble(CommandLine, String, double) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a double.
- getValueAsDouble(CommandLine, String, Double) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsEnum(CommandLine, String, Class<E>, E) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a enum.
- getValueAsExistingDirectory(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsExistingDirectory(CommandLine, String, File) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsExistingFile(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsExistingFile(CommandLine, String, File) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsExistingFileOrDirectory(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsExistingFileOrDirectory(CommandLine, String, File) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsFile(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a File.
- getValueAsFile(CommandLine, String, AbstractMainSupport.ValueChecker<? super File>) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option as a File.
- getValueAsFile(CommandLine, String, File) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a File.
- getValueAsFile(CommandLine, String, File, AbstractMainSupport.ValueChecker<? super File>) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option as a File.
- getValueAsFloat(CommandLine, String, float) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a float.
- getValueAsFloat(CommandLine, String, Float) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsInt(CommandLine, String, int) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as an int.
- getValueAsInt(CommandLine, String, Integer) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsLong(CommandLine, String, long) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a long.
- getValueAsLong(CommandLine, String, Long) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsNullOrExistingDirectory(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsNullOrExistingDirectory(CommandLine, String, File) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsNullOrExistingFile(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsNullOrExistingFile(CommandLine, String, File) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsNullOrExistingFileOrDirectory(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsNullOrExistingFileOrDirectory(CommandLine, String, File) - Static method in class cdc.util.cli.AbstractMainSupport
-
Deprecated, for removal: This API element is subject to removal in a future version.
- getValueAsResolvedFile(CommandLine, String) - Method in class cdc.util.cli.AbstractMainSupport
- getValueAsResolvedFile(CommandLine, String, AbstractMainSupport.ValueChecker<? super File>) - Method in class cdc.util.cli.AbstractMainSupport
-
Returns an option as a resolved file.
- getValueAsResolvedFile(CommandLine, String, File) - Method in class cdc.util.cli.AbstractMainSupport
- getValueAsResolvedFile(CommandLine, String, File, AbstractMainSupport.ValueChecker<? super File>) - Method in class cdc.util.cli.AbstractMainSupport
-
Returns an option as a resolved file.
- getValueAsShort(CommandLine, String, short) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a short.
- getValueAsShort(CommandLine, String, Short) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsString(CommandLine, String, String) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as a string.
- getValueAsURL(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
- getValueAsURL(CommandLine, String, URL) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns an option value as an URL.
- getValues(CommandLine, String) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns the values of an option as a String List.
- getValues(CommandLine, String, Function<String, T>) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns the values of an option, converted, as a List.
- getValues(CommandLine, String, Function<String, T>, AbstractMainSupport.ValueChecker<? super T>) - Static method in class cdc.util.cli.AbstractMainSupport
-
Returns the values of an option, converted and checked, as a List.
- getVersion() - Method in class cdc.util.cli.AbstractMainSupport
-
Returns the version.
H
- hasArgsFile() - Method in class cdc.util.cli.AbstractMainSupport
- HELP - Static variable in class cdc.util.cli.AbstractMainSupport
I
- INPUT - Static variable in class cdc.util.cli.AbstractMainSupport
- INPUT_DIR - Static variable in class cdc.util.cli.AbstractMainSupport
- IS_DIRECTORY - Static variable in class cdc.util.cli.AbstractMainSupport
-
Implementation of
AbstractMainSupport.ValueCheckerchecking that the value is an existing directory. - IS_FILE - Static variable in class cdc.util.cli.AbstractMainSupport
-
Implementation of
AbstractMainSupport.ValueCheckerchecking that the value is an existing file. - IS_FILE_OR_DIRECTORY - Static variable in class cdc.util.cli.AbstractMainSupport
-
Implementation of
AbstractMainSupport.ValueCheckerchecking that the value is an existing file or directory. - IS_NULL_OR_DIRECTORY - Static variable in class cdc.util.cli.AbstractMainSupport
-
Implementation of
AbstractMainSupport.ValueCheckerchecking that the value is an existing directory, or isnull. - IS_NULL_OR_FILE - Static variable in class cdc.util.cli.AbstractMainSupport
-
Implementation of
AbstractMainSupport.ValueCheckerchecking that the value is an existing file, or isnull. - IS_NULL_OR_FILE_OR_DIRECTORY - Static variable in class cdc.util.cli.AbstractMainSupport
-
Implementation of
AbstractMainSupport.ValueCheckerchecking that the value is an existing file or directory, or isnull. - IS_TRUE - Static variable in class cdc.util.cli.AbstractMainSupport
-
Implementation of
AbstractMainSupport.ValueCheckerthat always accepts and returns the input value. - isEmpty() - Method in class cdc.util.cli.FeatureMask
- isEnabled(E) - Method in class cdc.util.cli.FeatureMask
M
- main(String[]) - Method in class cdc.util.cli.AbstractMainSupport
-
Default main program.
- matchesCommandLine() - Method in enum cdc.util.cli.AbstractMainSupport.ExceptionThrowing
- matchesExecution() - Method in enum cdc.util.cli.AbstractMainSupport.ExceptionThrowing
N
- NEVER - cdc.util.cli.AbstractMainSupport.ExceptionThrowing
O
- OptionEnum - Interface in cdc.util.cli
-
Interface implemented by enums that can be used as options.
- OUTPUT - Static variable in class cdc.util.cli.AbstractMainSupport
- OUTPUT_DIR - Static variable in class cdc.util.cli.AbstractMainSupport
P
- PASSWORD - Static variable in class cdc.util.cli.AbstractMainSupport
- PATH - Static variable in class cdc.util.cli.AbstractMainSupport
- PREFIX - Static variable in class cdc.util.cli.AbstractMainSupport
- printHelp(Options, Exception) - Method in class cdc.util.cli.AbstractMainSupport
- printVersion() - Method in class cdc.util.cli.AbstractMainSupport
R
- remove(E) - Method in class cdc.util.cli.FeatureMask
- resolveToReferencePath(File) - Method in class cdc.util.cli.AbstractMainSupport
S
- setEnabled(E, boolean) - Method in interface cdc.util.cli.AbstractMainSupport.Maskable
- setEnabled(E, boolean) - Method in class cdc.util.cli.FeatureMask
- setMask(CommandLine, Class<E>, AbstractMainSupport.Maskable<E>) - Static method in class cdc.util.cli.AbstractMainSupport
- SUCCESS - cdc.util.cli.AbstractMainSupport.Result
T
- TMP_DIR - Static variable in class cdc.util.cli.AbstractMainSupport
- toList() - Method in class cdc.util.cli.FeatureMask
- toSet() - Method in class cdc.util.cli.FeatureMask
U
- URL - Static variable in class cdc.util.cli.AbstractMainSupport
- USER - Static variable in class cdc.util.cli.AbstractMainSupport
V
- valueOf(String) - Static method in enum cdc.util.cli.AbstractMainSupport.ExceptionThrowing
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum cdc.util.cli.AbstractMainSupport.Result
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum cdc.util.cli.AbstractMainSupport.ExceptionThrowing
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum cdc.util.cli.AbstractMainSupport.Result
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VERSION - Static variable in class cdc.util.cli.AbstractMainSupport
All Classes All Packages