Module com.github.rvesse.airline
Interface ArgumentsRestrictionFactory
-
- All Known Implementing Classes:
AllowedValuesRestrictionFactory
,MultipleRestrictionFactory
,OccurrencesRestrictionFactory
,PathRestrictionFactory
,PortRestrictionFactory
,RangeRestrictionFactory
,RequireFromRestrictionFactory
,SimpleRestrictionsFactory
,StringRestrictionFactory
public interface ArgumentsRestrictionFactory
Interface for arguments restriction factories
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArgumentsRestriction
createArgumentsRestriction(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
null
if 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
-
-