- java.lang.Object
-
- com.github.rvesse.airline.restrictions.AbstractCommonRestriction
-
- com.github.rvesse.airline.restrictions.None
-
- All Implemented Interfaces:
ArgumentsRestriction,GlobalRestriction,OptionRestriction
public class None extends AbstractCommonRestriction implements GlobalRestriction
A restriction which doesn't actually impose any restrictions
-
-
Field Summary
-
Fields inherited from interface com.github.rvesse.airline.restrictions.GlobalRestriction
DEFAULTS
-
-
Constructor Summary
Constructors Constructor Description None()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidvalidate(ParseState<T> state)Validates the parser state-
Methods inherited from class com.github.rvesse.airline.restrictions.AbstractCommonRestriction
finalValidate, finalValidate, getArgumentTitle, getArgumentTitle, getOptionTitle, postValidate, postValidate, preValidate, preValidate
-
-
-
-
Method Detail
-
validate
public <T> void validate(ParseState<T> state)
Description copied from interface:GlobalRestrictionValidates the parser stateShould throw an exception if the restriction is violated, otherwise should simply return
- Specified by:
validatein interfaceGlobalRestriction- Parameters:
state- Parser state
-
-