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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OptionRestriction
createOptionRestriction(java.lang.annotation.Annotation annotation)
Try and create an option restriction from the given annotationjava.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>>
supportedOptionAnnotations()
Gets a list of annotations that this factory can convert into option restrictions
-
-
-
Method Detail
-
createOptionRestriction
OptionRestriction createOptionRestriction(java.lang.annotation.Annotation annotation)
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
java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> supportedOptionAnnotations()
Gets a list of annotations that this factory can convert into option restrictions- Returns:
- List of supported annotations
-
-