Annotation Type Regex
Annotation version of adding
RegexPreprocessor
as a preprocessor using CommandArgument.addPreprocessor(BiFunction)
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescription@NonNull String
Key for the caption used to generate the failure exception.
-
Element Details
-
value
@NonNull String valueRegular expression pattern- Returns:
- Pattern
-
-
-
failureCaption
@NonNull String failureCaptionKey for the caption used to generate the failure exception. Defaults toStandardCaptionKeys.ARGUMENT_PARSE_FAILURE_REGEX
- Returns:
- Failure caption key
- Default:
- "argument.parse.failure.regex"
-