Class NillableOrExpressionParameterValidator

    • Constructor Detail

      • NillableOrExpressionParameterValidator

        public NillableOrExpressionParameterValidator​(ParameterValidator delegate,
                                                      Boolean allowNull,
                                                      boolean allowExpression)
        Creates a new NillableOrExpressionParameterValidator.
        Parameters:
        delegate - validator to delegate to once null and expression validation is done. Cannot be null
        allowNull - whether undefined values are allowed. If this param is null, checking for undefined is delegated to the provided delegate
        allowExpression - whether expressions are allowed
        Throws:
        IllegalArgumentException - if delegate is null