Modifier and Type | Method and Description |
---|---|
protected void |
CliUsageHelper.outputOptionRestriction(UsagePrinter out,
OptionMetadata option,
OptionRestriction restriction,
HelpHint hint)
Outputs documentation about a restriction on an option
|
Modifier and Type | Method and Description |
---|---|
protected List<HelpHint> |
AbstractUsageGenerator.sortOptionRestrictions(List<OptionRestriction> restrictions) |
Modifier and Type | Method and Description |
---|---|
List<OptionRestriction> |
OptionMetadata.getRestrictions() |
Constructor and Description |
---|
OptionMetadata(OptionType optionType,
Iterable<String> options,
String title,
String description,
int arity,
boolean hidden,
boolean overrides,
boolean sealed,
Iterable<OptionRestriction> 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,
OptionRestriction optionRestriction) |
PartialRestriction(int[] indices,
OptionRestriction optionRestriction) |
Modifier and Type | Class and Description |
---|---|
class |
MutuallyExclusiveRestriction |
class |
RequiredOnlyIfRestriction |
class |
RequireFromRestriction |
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.collections4.Predicate<OptionRestriction> |
RequiredTagParsedOptionFinder.getRestrictionPredicate() |
protected org.apache.commons.collections4.Predicate<OptionRestriction> |
RequiredTagOptionFinder.getRestrictionPredicate() |
protected org.apache.commons.collections4.Predicate<OptionRestriction> |
MutuallyExclusiveWithTagParsedOptionFinder.getRestrictionPredicate() |
protected abstract org.apache.commons.collections4.Predicate<OptionRestriction> |
AbstractParsedOptionRestrictionBasedFinder.getRestrictionPredicate() |
protected abstract org.apache.commons.collections4.Predicate<OptionRestriction> |
AbstractOptionRestrictionBasedFinder.getRestrictionPredicate() |
Modifier and Type | Method and Description |
---|---|
boolean |
RequiredFromFinder.evaluate(OptionRestriction restriction) |
boolean |
MutuallyExclusiveWithFinder.evaluate(OptionRestriction restriction) |
boolean |
IsRequiredOptionFinder.evaluate(OptionRestriction restriction) |
boolean |
AllowedValuesOptionFinder.evaluate(OptionRestriction restriction) |
Copyright © 2012–2017. All rights reserved.