Class ListValidator

    • Constructor Detail

      • ListValidator

        public ListValidator​(ParameterValidator elementValidator)
        Constructs a new ListValidator
        Parameters:
        elementValidator - validator for list elements
      • ListValidator

        public ListValidator​(ParameterValidator elementValidator,
                             boolean nullable)
        Parameters:
        elementValidator - validator for list elements
        nullable - true if the model node for the list can be null or ModelType.UNDEFINED
      • ListValidator

        public ListValidator​(ParameterValidator elementValidator,
                             boolean nullable,
                             boolean allowDuplicates)
        Parameters:
        elementValidator - validator for list elements
        nullable - true if the model node for the list can be null or ModelType.UNDEFINED
      • ListValidator

        public ListValidator​(ParameterValidator elementValidator,
                             boolean nullable,
                             int minSize,
                             int maxSize)
        Parameters:
        elementValidator - validator for list elements
        nullable - true if the model node for the list can be null or ModelType.UNDEFINED
        minSize - minimum number of elements in the list
        maxSize - maximum number of elements in the list
      • ListValidator

        public ListValidator​(ParameterValidator elementValidator,
                             boolean nullable,
                             int minSize,
                             int maxSize,
                             boolean allowDuplicates)
        Parameters:
        elementValidator - validator for list elements
        nullable - true if the model node for the list can be null or ModelType.UNDEFINED
        minSize - minimum number of elements in the list
        maxSize - maximum number of elements in the list
        allowDuplicates - validate duplicates in list or not