| Package | Description |
|---|---|
| com.github.rvesse.airline.restrictions | |
| com.github.rvesse.airline.restrictions.common | |
| com.github.rvesse.airline.restrictions.factories |
| Modifier and Type | Class and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractCommonRestriction |
StringRestrictionFactory.createCommon(Annotation annotation) |
protected AbstractCommonRestriction |
RangeRestrictionFactory.createCommon(Annotation annotation)
Handles converting all the basic range annotations into appropriate range
restrictions
|
protected AbstractCommonRestriction |
RangeRestrictionFactory.createLengthRange(Annotation annotation) |
protected AbstractCommonRestriction |
RangeRestrictionFactory.createUnknownRange(Annotation annotation)
Handles turning unknown annotations into range restrictions, derived
factories can extend this to add support for additional range
restrictions
|
Copyright © 2012–2022. All rights reserved.