Uses of Class
com.clumd.projects.java_common_utils.arg_parser.Argument.ArgumentBuilder
Packages that use Argument.ArgumentBuilder
-
Uses of Argument.ArgumentBuilder in com.clumd.projects.java_common_utils.arg_parser
Methods in com.clumd.projects.java_common_utils.arg_parser that return Argument.ArgumentBuilderModifier and TypeMethodDescriptionArgument.ArgumentBuilder.argumentResult(T argumentResult) If this argument needs a value, then this should be the fully validated and parsed output of that value.static <T> Argument.ArgumentBuilder<T>Argument.builder()Argument.ArgumentBuilder.conversionFunction(Function<String, T> conversionFunction) This function is used to convert an argument from the CLI string form, into the object the running process needs.Argument.ArgumentBuilder.defaultValue(T toValue) Used to set the default value, and also mark that the default value has been set.Argument.ArgumentBuilder.defaultValueSet(boolean defaultValueSet) Used to track if a default value has been set for this argument to be used if no CLI value is found.Argument.ArgumentBuilder.description(String description) Used to describe the purpose of this Argument and how it should be used.Argument.ArgumentBuilder.hasValue(boolean hasValue) Used to indicate if this argument can be followed by a value, defaults to falseArgument.ArgumentBuilder.isMandatory(boolean isMandatory) Used to indicate if this argument is mandatory and MUST be provided for the utilising code to function.Argument.ArgumentBuilder.longOptions(Set<String> longOptions) Used to contain all the word alias' to indicate this optionArgument.ArgumentBuilder.shortOptions(Set<Character> shortOptions) Used to contain all the single character alias' to indicate this optionArgument.ArgumentBuilder.uniqueId(int uniqueId) Used to index the options, must be unique and supplied by the user.Argument.ArgumentBuilder.validationFunction(Function<T, Boolean> validationFunction) This function can be provided to run a verification step that the argument's value is acceptable.Argument.ArgumentBuilder.valueIsOptional(boolean valueIsOptional) Used to indicate if the value to this argument can be optional, defaults to false.