Module com.github.rvesse.airline
Class IsRequiredRestriction
java.lang.Object
com.github.rvesse.airline.restrictions.AbstractCommonRestriction
com.github.rvesse.airline.restrictions.common.IsRequiredRestriction
- All Implemented Interfaces:
ArgumentsRestriction
,OptionRestriction
A restriction that options/arguments are required
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> void
finalValidate
(ParseState<T> state, ArgumentsMetadata arguments) Method that is called after Airline has completed parsing<T> void
finalValidate
(ParseState<T> state, OptionMetadata option) Method that is called after Airline has completed parsingMethods inherited from class com.github.rvesse.airline.restrictions.AbstractCommonRestriction
getArgumentTitle, getArgumentTitle, getOptionTitle, postValidate, postValidate, preValidate, preValidate
-
Constructor Details
-
IsRequiredRestriction
public IsRequiredRestriction()
-
-
Method Details
-
finalValidate
Description copied from interface:OptionRestriction
Method that is called after Airline has completed parsingThis can be used to implement restrictions that require the final parser state to process
- Specified by:
finalValidate
in interfaceOptionRestriction
- Overrides:
finalValidate
in classAbstractCommonRestriction
- Parameters:
state
- Parser stateoption
- Option meta-data
-
finalValidate
Description copied from interface:ArgumentsRestriction
Method that is called after Airline has completed parsingThis can be used to implement restrictions that require the final parser state to process
- Specified by:
finalValidate
in interfaceArgumentsRestriction
- Overrides:
finalValidate
in classAbstractCommonRestriction
- Parameters:
state
- Parser statearguments
- Arguments meta-data
-