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 Details

    • createOptionRestriction

      OptionRestriction createOptionRestriction(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

      List<Class<? extends Annotation>> supportedOptionAnnotations()
      Gets a list of annotations that this factory can convert into option restrictions
      Returns:
      List of supported annotations