Package | Description |
---|---|
org.apache.commons.cli2.builder |
Modifier and Type | Method and Description |
---|---|
ArgumentBuilder |
ArgumentBuilder.reset()
Resets the ArgumentBuilder to the defaults for a new Argument.
|
ArgumentBuilder |
ArgumentBuilder.withConsumeRemaining(String newConsumeRemaining)
Sets the "consume remaining" option, defaults to "--".
|
ArgumentBuilder |
ArgumentBuilder.withDefault(Object defaultValue)
Sets the default value.
|
ArgumentBuilder |
ArgumentBuilder.withDefaults(List newDefaultValues)
Sets the default values.
|
ArgumentBuilder |
ArgumentBuilder.withDescription(String newDescription)
Sets the description of the argument.
|
ArgumentBuilder |
ArgumentBuilder.withId(int newId)
Sets the id
|
ArgumentBuilder |
ArgumentBuilder.withInitialSeparator(char newInitialSeparator)
Sets the character used to separate the values from the option.
|
ArgumentBuilder |
ArgumentBuilder.withMaximum(int newMaximum)
Sets the maximum number of values allowed for the argument to be valid.
|
ArgumentBuilder |
ArgumentBuilder.withMinimum(int newMinimum)
Sets the minimum number of values needed for the argument to be valid.
|
ArgumentBuilder |
ArgumentBuilder.withName(String newName)
Sets the name of the argument.
|
ArgumentBuilder |
ArgumentBuilder.withSubsequentSeparator(char newSubsequentSeparator)
Sets the character used to separate the values from each other.
|
ArgumentBuilder |
ArgumentBuilder.withValidator(Validator newValidator)
Sets the validator instance used to perform validation on the Argument
values.
|
Constructor and Description |
---|
PatternBuilder(GroupBuilder gbuilder,
DefaultOptionBuilder obuilder,
ArgumentBuilder abuilder)
Creates a new PatternBuilder
|
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.