| Package | Description |
|---|---|
| org.apache.commons.cli |
Apache Commons CLI provides a simple API for presenting, processing, and validating a Command Line Interface.
|
| Modifier and Type | Field | Description |
|---|---|---|
static Converter<Class<?>,ClassNotFoundException> |
Converter.CLASS
Class name converter.
|
|
static Converter<Date,ParseException> |
Converter.DATE
Converts to a date using the format string Form "EEE MMM dd HH:mm:ss zzz yyyy".
|
|
static Converter<?,RuntimeException> |
Converter.DEFAULT
The default converter.
|
|
static Converter<File,NullPointerException> |
Converter.FILE
File name converter.
|
|
static Converter<Number,NumberFormatException> |
Converter.NUMBER
Number converter.
|
|
static Converter<Object,ReflectiveOperationException> |
Converter.OBJECT
Converts a class name to an instance of the class.
|
|
static Converter<Path,InvalidPathException> |
Converter.PATH
Path converter.
|
|
static Converter<URL,MalformedURLException> |
Converter.URL
Creates a URL.
|
| Modifier and Type | Method | Description |
|---|---|---|
Converter<?,?> |
Option.getConverter()
Gets the value to type converter.
|
|
<T> Converter<T,?> |
TypeHandler.getConverter(Class<T> clazz)
Gets the registered converter for the the Class, or
DEFAULT if absent. |
| Modifier and Type | Method | Description |
|---|---|---|
static Map<Class<?>,Converter<?,? extends Throwable>> |
TypeHandler.createDefaultMap()
Creates a default converter map.
|
| Modifier and Type | Method | Description |
|---|---|---|
Option.Builder |
Option.Builder.converter(Converter<?,?> converter)
Sets the converter for the option.
|
|
void |
Option.setConverter(Converter<?,?> converter)
Sets the value to type converter.
|
| Constructor | Description |
|---|---|
TypeHandler(Map<Class<?>,Converter<?,? extends Throwable>> converterMap)
Constructs a default initialized instance.
|
Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository