| Modifier and Type | Method and Description |
|---|---|
protected void |
CliUsageHelper.outputArgumentsRestriction(UsagePrinter descriptionPrinter,
ArgumentsMetadata arguments,
ArgumentsRestriction restriction,
HelpHint hint)
Outputs documentation about a restriction on an option
|
| Modifier and Type | Method and Description |
|---|---|
protected List<HelpHint> |
AbstractUsageGenerator.sortArgumentsRestrictions(List<ArgumentsRestriction> restrictions) |
| Modifier and Type | Method and Description |
|---|---|
List<ArgumentsRestriction> |
ArgumentsMetadata.getRestrictions() |
| Constructor and Description |
|---|
ArgumentsMetadata(Iterable<String> titles,
String description,
Iterable<ArgumentsRestriction> restrictions,
TypeConverterProvider typeConverterProvider,
Iterable<Field> path) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCommonRestriction |
class |
None
A restriction which doesn't actually impose any restrictions
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAllowedValuesRestriction |
class |
AbstractLocaleAndCaseStringRestriction
An abstract string restriction that needs a locale and case sensitivity flag
|
class |
AbstractStringRestriction
Abstract restrictions on string values for options and arguments
|
class |
AllowedEnumValuesRestriction |
class |
AllowedRawValuesRestriction |
class |
AllowedValuesRestriction |
class |
EndsWithRestriction
A restriction that requires raw values to end with one of a set of suffixes
|
class |
IsRequiredRestriction
A restriction that options/arguments are required
|
class |
LengthRestriction
A restriction that requires string values meet length constraints
|
class |
NoOptionLikeValuesRestriction
A restriction that enforces that values CANNOT look like options
|
class |
NotBlankRestriction |
class |
NotEmptyRestriction |
class |
OccurrencesRestriction |
class |
PartialRestriction |
class |
PathRestriction
Implements restriction on options and arguments that expect to receive a path
to a file and/or directory
|
class |
PatternRestriction
A restriction which requires the raw values to match a given regular
expression
|
class |
PortRestriction |
class |
PositiveNegativeRestriction
Restriction that enforces that values must be either positive/negative with
zero optionally included
|
class |
RangeRestriction
A restriction that requires the value (after type conversion) to be within a
given range
|
class |
StartsWithRestriction
A restriction that requires raw values to start with one of a set of prefixes
|
| Constructor and Description |
|---|
PartialRestriction(Collection<Integer> indices,
ArgumentsRestriction argumentsRestriction) |
PartialRestriction(int[] indices,
ArgumentsRestriction argumentsRestriction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
IsRequiredArgumentFinder.evaluate(ArgumentsRestriction restriction) |
Copyright © 2012–2022. All rights reserved.