Module com.github.rvesse.airline
Class RequiredOnlyIfRestrictionFactory
java.lang.Object
com.github.rvesse.airline.restrictions.factories.RequiredOnlyIfRestrictionFactory
- All Implemented Interfaces:
OptionRestrictionFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOptionRestriction
(Annotation annotation) Try and create an option restriction from the given annotationList
<Class<? extends Annotation>> Gets a list of annotations that this factory can convert into option restrictions
-
Constructor Details
-
RequiredOnlyIfRestrictionFactory
public RequiredOnlyIfRestrictionFactory()
-
-
Method Details
-
createOptionRestriction
Description copied from interface:OptionRestrictionFactory
Try and create an option restriction from the given annotation- Specified by:
createOptionRestriction
in interfaceOptionRestrictionFactory
- Parameters:
annotation
- Annotation- Returns:
- Option restriction or
null
if this factory cannot create a restriction from the given annotation
-
supportedOptionAnnotations
Description copied from interface:OptionRestrictionFactory
Gets a list of annotations that this factory can convert into option restrictions- Specified by:
supportedOptionAnnotations
in interfaceOptionRestrictionFactory
- Returns:
- List of supported annotations
-