/** * Initializes the regular expression validator. * * @param context the ValidationContext */ private void initEvaluator(final ValidationContext context) { _regex = context.getInternalContext().getRegExpEvaluator(); if (_regex == null && hasPattern()) { throw new IllegalStateException( resourceBundle.getString("patternValidator.error.exception.noPatterns")); } }
/** * Initializes the regular expression validator. * @param context * the ValidationContext */ private void initEvaluator(final ValidationContext context) { _regex = context.getInternalContext().getRegExpEvaluator(); if (_regex == null) { _regex = new DefaultRegExpEvaluator(); } } // -- initRegExpValidator