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 |
AbstractStringRestriction
Abstract restrictions on string values for options and arguments
|
class |
AllowedRawValuesRestriction |
class |
AllowedValuesRestriction |
class |
IsRequiredRestriction
A restriction that options/arguments are required
|
class |
LengthRestriction
A restriction that requires string values
|
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 |
RangeRestriction
A restriction that requires the value (after type conversion) to be within a
given range
|
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–2017. All rights reserved.