Module com.github.rvesse.airline
Package com.github.rvesse.airline.annotations.restrictions
-
Enum Summary Enum Description PathKind Enumeration of path kindsPortType Port types -
Annotation Types Summary Annotation Type Description AllowedEnumValues Annotation that marks that the option/arguments are restricted to a given set of raw string values as defined by a given enum typeAllowedRawValues Annotation that marks that the option/arguments are restricted to a given set of raw string valuesAllowedValues Annotation that marks that the option/arguments are restricted to a given set of valuesDirectory Annotation that marks that an options value must be a valid path to a directoryEndsWith Annotation that marks that an options value must end with a given stringExactLength Annotation that marks that an options value is restricted to being an exact lengthFile Annotation that marks that an options value must be a valid path to a fileMaxLength Annotation that marks that an options value is restricted to a maximum length (which is inclusive)MaxOccurrences Annotation that marks an option as being restricted to occurring some maximum number of times (inclusive)MinLength Annotation that marks that an options value is restricted to a minimum length (which is inclusive)MinOccurrences Annotation that marks an option as being required to occur some minimum number of times (inclusive)MutuallyExclusiveWith Annotation that indicates that you optionally permit one option from some set of options to be present, the set of options are identified by a user defined tag.NoOptionLikeValues An annotation that marks that values provided for options/arguments MUST NOT look like possible options.NotBlank An annotation that marks that an options values must not be blank i.e.NotEmpty An annotation that marks an options value must not be emptyOnce An annotation that marks that an option may occur at most oncePartial Annotation which is used as a modifier to indicate that a restriction annotation (whose type is denoted by thePartial.restriction()
field) does not apply to all values passed to anOption
orArguments
annotated field but rather applies only to certain valuesPartials Path Annotation that marks that an options value must be a valid path to a file/directoryPattern An annotation that indicates that an options raw values must match a given regular expressionPort Annotation that indicates that an option/argument denotes a port number and its value should be restricted as such to a specific set of port classes as defined byPortType
.PortRange Annotation that indicates that an option/argument denotes a port number and its value should be restricted as such to a specific set of ports.PortRanges Annotation that indicates that an option/argument denotes a port number and its value should be restricted as such to a specific set of ports.Required An annotation that indicates that an option/arguments is requiredRequiredOnlyIf An annotation that indicates that an option/arguments is required only if some other option/options are presentRequiredUnlessEnvironment An annotation that indicates that an option/arguments is required UNLESS a specific environment variable is set.RequireOnlyOne Annotation that indicates that you only permit one option from some set of options to be present, the set of options are identified by a user defined tag.RequireSome This annotation denotes that at least one of some set of options are required, the set of options are identified by a user defined tag.StartsWith Annotation that marks that an options value must start with a given stringUnrestricted An annotation that indicates that no restrictions should apply