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> voidfinalValidate(ParseState<T> state, ArgumentsMetadata arguments) Method that is called after Airline has completed parsing<T> voidfinalValidate(ParseState<T> state, OptionMetadata option) Method that is called after Airline has completed parsingMethods inherited from class AbstractCommonRestriction
getArgumentTitle, getArgumentTitle, getOptionTitle, postValidate, postValidate, preValidate, preValidate
-
Constructor Details
-
IsRequiredRestriction
public IsRequiredRestriction()
-
-
Method Details
-
finalValidate
Description copied from interface:OptionRestrictionMethod that is called after Airline has completed parsingThis can be used to implement restrictions that require the final parser state to process
- Specified by:
finalValidatein interfaceOptionRestriction- Overrides:
finalValidatein classAbstractCommonRestriction- Parameters:
state- Parser stateoption- Option meta-data
-
finalValidate
Description copied from interface:ArgumentsRestrictionMethod that is called after Airline has completed parsingThis can be used to implement restrictions that require the final parser state to process
- Specified by:
finalValidatein interfaceArgumentsRestriction- Overrides:
finalValidatein classAbstractCommonRestriction- Parameters:
state- Parser statearguments- Arguments meta-data
-