Package | Description |
---|---|
org.apache.commons.cli2.builder | |
org.apache.commons.cli2.option | |
org.apache.commons.cli2.validation |
Provides classes and interfaces for validating argument values.
|
Modifier and Type | Method and Description |
---|---|
ArgumentBuilder |
ArgumentBuilder.withValidator(Validator newValidator)
Sets the validator instance used to perform validation on the Argument
values.
|
Modifier and Type | Method and Description |
---|---|
Validator |
ArgumentImpl.getValidator() |
Constructor and Description |
---|
ArgumentImpl(String name,
String description,
int minimum,
int maximum,
char initialSeparator,
char subsequentSeparator,
Validator validator,
String consumeRemaining,
List valueDefaults,
int id)
Creates a new Argument instance.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassValidator
The
ClassValidator validates the string argument
values are class names. |
class |
DateValidator
The
DateValidator validates the argument values
are date or time value(s). |
class |
EnumValidator
The
EnumValidator validates the string argument
values are valid. |
class |
FileValidator
The
FileValidator validates the string argument
values are files. |
class |
NumberValidator
The
NumberValidator validates the string argument
values are numbers. |
class |
UrlValidator
The
UrlValidator validates the string argument
values are URLs. |
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.