Module com.github.rvesse.airline
Interface OptionRestrictionFactory
- All Known Implementing Classes:
AllowedValuesRestrictionFactory
,MultipleRestrictionFactory
,OccurrencesRestrictionFactory
,PathRestrictionFactory
,PortRestrictionFactory
,RangeRestrictionFactory
,RequiredOnlyIfRestrictionFactory
,RequireFromRestrictionFactory
,SimpleRestrictionsFactory
,StringRestrictionFactory
public interface OptionRestrictionFactory
Interface for option restriction factories
-
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
-
Method Details
-
createOptionRestriction
Try and create an option restriction from the given annotation- Parameters:
annotation
- Annotation- Returns:
- Option restriction or
null
if this factory cannot create a restriction from the given annotation
-
supportedOptionAnnotations
List<Class<? extends Annotation>> supportedOptionAnnotations()Gets a list of annotations that this factory can convert into option restrictions- Returns:
- List of supported annotations
-