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
Modifier and TypeMethodDescriptioncreateArgumentsRestriction(Annotation annotation) Tries to create an arguments restriction from the given annotationList<Class<? extends Annotation>> Gets a list of annotations that this factory can convert into arguments restrictions
-
Method Details
-
createArgumentsRestriction
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
List<Class<? extends Annotation>> supportedArgumentsAnnotations()Gets a list of annotations that this factory can convert into arguments restrictions- Returns:
- List of supported annotations
-