Module com.github.rvesse.airline
Interface ArgumentsRestrictionFactory
-
- All Known Implementing Classes:
AllowedValuesRestrictionFactory,MultipleRestrictionFactory,OccurrencesRestrictionFactory,PathRestrictionFactory,PortRestrictionFactory,RangeRestrictionFactory,RequireFromRestrictionFactory,SimpleRestrictionsFactory,StringRestrictionFactory
public interface ArgumentsRestrictionFactoryInterface for arguments restriction factories
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArgumentsRestrictioncreateArgumentsRestriction(java.lang.annotation.Annotation annotation)Tries to create an arguments restriction from the given annotationjava.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>>supportedArgumentsAnnotations()Gets a list of annotations that this factory can convert into arguments restrictions
-
-
-
Method Detail
-
createArgumentsRestriction
ArgumentsRestriction createArgumentsRestriction(java.lang.annotation.Annotation annotation)
Tries to create an arguments restriction from the given annotation- Parameters:
annotation- Annotation- Returns:
- Arguments restriction or
nullif this factory cannot create a restriction from the given annotation
-
supportedArgumentsAnnotations
java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> supportedArgumentsAnnotations()
Gets a list of annotations that this factory can convert into arguments restrictions- Returns:
- List of supported annotations
-
-